public class DefaultEHCacheCodeDataProvider extends DefaultEHCacheOAuthDataProvider implements AuthorizationCodeDataProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE_GRANT_CACHE_KEY |
ACCESS_TOKEN_CACHE_KEY, cacheManager, CLIENT_CACHE_KEY, DEFAULT_CONFIG_URL, REFRESH_TOKEN_CACHE_KEY| Modifier | Constructor and Description |
|---|---|
protected |
DefaultEHCacheCodeDataProvider() |
protected |
DefaultEHCacheCodeDataProvider(String configFileURL,
Bus bus) |
protected |
DefaultEHCacheCodeDataProvider(String configFileURL,
Bus bus,
String clientCacheKey,
String codeCacheKey,
String accessTokenKey,
String refreshTokenKey) |
| Modifier and Type | Method and Description |
|---|---|
ServerAuthorizationCodeGrant |
createCodeGrant(AuthorizationCodeRegistration reg)
Creates a temporarily code grant which will capture the
information about the
Client requesting the access to
the resource owner's resources |
protected ServerAuthorizationCodeGrant |
doCreateCodeGrant(AuthorizationCodeRegistration reg) |
protected void |
doRemoveClient(Client c) |
ServerAuthorizationCodeGrant |
getCodeGrant(String code) |
List<ServerAuthorizationCodeGrant> |
getCodeGrants(Client c,
UserSubject sub)
Return the list of code grants associated with a given client
|
protected void |
removeClientCodeGrants(Client c) |
ServerAuthorizationCodeGrant |
removeCodeGrant(String code)
Returns the previously registered
ServerAuthorizationCodeGrant |
protected void |
saveCodeGrant(ServerAuthorizationCodeGrant grant) |
void |
setCodeLifetime(long codeLifetime) |
close, createCache, doGetClient, doRevokeAccessToken, doRevokeRefreshToken, getAccessToken, getAccessTokens, getCacheValue, getClients, getRefreshToken, getRefreshTokens, isStoreJwtTokenKeyOnly, putCacheValue, saveAccessToken, saveRefreshToken, setClient, setJwtTokenConsumer, setStoreJwtTokenKeyOnlyauthenticateUnregisteredClient, checkRequestedScopes, convertScopeToPermissions, convertSingleScopeToPermission, createAccessToken, createClientCredentialsClient, createJwtAccessToken, createNewAccessToken, createNewRefreshToken, doCreateAccessToken, doCreateNewRefreshToken, doRefreshAccessToken, getClient, getCurrentClientSecret, getCurrentRequestedGrantType, getCurrentTokenRequestParams, getDefaultScopes, getInvisibleToClientScopes, getJwtAccessTokenClaimMap, getJwtAccessTokenProducer, getMessageContext, getPermissionMap, getPreauthorizedToken, getRequiredScopes, handleLinkedRefreshToken, init, isClientMatched, isRecycleRefreshTokens, isRefreshTokenSupported, isSupportPreauthorizedTokens, isTokenMatched, isUseJwtFormatForAccessTokens, linkAccessTokenToRefreshToken, linkRefreshTokenToAccessToken, processJwtAccessToken, refreshAccessToken, removeClient, removeClientTokens, revokeAccessToken, revokeAccessTokens, revokeRefreshToken, revokeToken, setAccessTokenLifetime, setAuthenticationStrategy, setClients, setDefaultScopes, setInvisibleToClientScopes, setJwtAccessTokenClaimMap, setJwtAccessTokenProducer, setMessageContext, setPermissionMap, setRecycleRefreshTokens, setRefreshTokenLifetime, setRequiredScopes, setSupportedScopes, setSupportPreauthorizedTokens, setUseJwtFormatForAccessTokens, unlinkRefreshAccessToken, updateExistingRefreshToken, updateRefreshTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertScopeToPermissions, createAccessToken, getAccessToken, getAccessTokens, getClient, getPreauthorizedToken, getRefreshTokens, refreshAccessToken, revokeTokenpublic static final String CODE_GRANT_CACHE_KEY
protected DefaultEHCacheCodeDataProvider()
protected DefaultEHCacheCodeDataProvider(String configFileURL, Bus bus)
protected void doRemoveClient(Client c)
doRemoveClient in class DefaultEHCacheOAuthDataProviderprotected void removeClientCodeGrants(Client c)
public ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
AuthorizationCodeDataProviderClient requesting the access to
the resource owner's resourcescreateCodeGrant in interface AuthorizationCodeDataProviderreg - information about the client code grant requestOAuthServiceExceptionAuthorizationCodeRegistration,
ServerAuthorizationCodeGrantprotected ServerAuthorizationCodeGrant doCreateCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
OAuthServiceExceptionpublic List<ServerAuthorizationCodeGrant> getCodeGrants(Client c, UserSubject sub)
AuthorizationCodeDataProvidergetCodeGrants in interface AuthorizationCodeDataProvidersub - the user subject, can be nullServerAuthorizationCodeGrantpublic ServerAuthorizationCodeGrant removeCodeGrant(String code) throws OAuthServiceException
AuthorizationCodeDataProviderServerAuthorizationCodeGrantremoveCodeGrant in interface AuthorizationCodeDataProvidercode - the code grantOAuthServiceException - if no grant with this code is availableServerAuthorizationCodeGrantpublic ServerAuthorizationCodeGrant getCodeGrant(String code) throws OAuthServiceException
OAuthServiceExceptionprotected void saveCodeGrant(ServerAuthorizationCodeGrant grant)
public void setCodeLifetime(long codeLifetime)
Apache CXF