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,
org.apache.cxf.Bus bus) |
protected |
DefaultEHCacheCodeDataProvider(String configFileURL,
org.apache.cxf.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) |
ServerAuthorizationCodeGrant |
getCodeGrant(String code) |
List<ServerAuthorizationCodeGrant> |
getCodeGrants(Client c) |
Client |
removeClient(String clientId) |
protected void |
removeClientCodeGrants(Client c) |
ServerAuthorizationCodeGrant |
removeCodeGrant(String code)
Returns the previously registered
ServerAuthorizationCodeGrant |
protected void |
saveAuthorizationGrant(ServerAuthorizationCodeGrant grant) |
protected void |
saveCodeGrant(ServerAuthorizationCodeGrant grant) |
close, createCache, getAccessToken, getAccessTokens, getCacheValue, getClient, getClients, getRefreshToken, getRefreshTokens, putCacheValue, revokeAccessToken, revokeRefreshToken, saveAccessToken, saveRefreshToken, setClientconvertScopeToPermissions, createAccessToken, createNewAccessToken, createNewRefreshToken, doCreateAccessToken, doCreateNewRefreshToken, doRefreshAccessToken, getMessageContext, getPermissionMap, getPreauthorizedToken, handleLinkedRefreshToken, init, isRefreshTokenSupported, refreshAccessToken, removeAccessToken, removeClientTokens, revokeAccessTokens, revokeToken, setAccessTokenLifetime, setMessageContext, setPermissionMap, setRecycleRefreshTokens, setRefreshTokenLifetime, setScopes, unlinkRefreshAccessToken, updateRefreshTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertScopeToPermissions, createAccessToken, getAccessToken, getClient, getPreauthorizedToken, refreshAccessToken, removeAccessToken, revokeTokenpublic static final String CODE_GRANT_CACHE_KEY
protected DefaultEHCacheCodeDataProvider()
protected DefaultEHCacheCodeDataProvider(String configFileURL, org.apache.cxf.Bus bus)
public Client removeClient(String clientId)
removeClient in interface ClientRegistrationProviderremoveClient 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)
public 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)
protected void saveAuthorizationGrant(ServerAuthorizationCodeGrant grant)
Apache CXF