public abstract class AbstractCodeDataProvider extends AbstractOAuthDataProvider implements AuthorizationCodeDataProvider
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCodeDataProvider() |
| 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) |
static ServerAuthorizationCodeGrant |
initCodeGrant(AuthorizationCodeRegistration reg,
long lifetime) |
protected void |
removeClientCodeGrants(Client c) |
protected abstract void |
saveCodeGrant(ServerAuthorizationCodeGrant grant) |
void |
setCodeLifetime(long codeLifetime) |
close, convertScopeToPermissions, createAccessToken, createNewAccessToken, createNewRefreshToken, doCreateAccessToken, doCreateNewRefreshToken, doRefreshAccessToken, getDefaultScopes, getInvisibleToClientScopes, getMessageContext, getPermissionMap, getPreauthorizedToken, getRefreshToken, getRequiredScopes, handleLinkedRefreshToken, init, isRefreshTokenSupported, isSupportPreauthorizedTokens, refreshAccessToken, removeAccessToken, removeClientTokens, revokeAccessToken, revokeAccessTokens, revokeRefreshToken, revokeToken, saveAccessToken, saveRefreshToken, setAccessTokenLifetime, setDefaultScopes, setInvisibleToClientScopes, setMessageContext, setPermissionMap, setRecycleRefreshTokens, setRefreshTokenLifetime, setRequiredScopes, setSupportedScopes, setSupportPreauthorizedTokens, unlinkRefreshAccessToken, updateRefreshTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCodeGrants, removeCodeGrantconvertScopeToPermissions, createAccessToken, getAccessToken, getAccessTokens, getClient, getPreauthorizedToken, getRefreshTokens, refreshAccessToken, removeAccessToken, revokeTokengetClient, getClients, removeClient, setClientpublic 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 void setCodeLifetime(long codeLifetime)
protected void removeClientCodeGrants(Client c)
public static ServerAuthorizationCodeGrant initCodeGrant(AuthorizationCodeRegistration reg, long lifetime)
protected abstract void saveCodeGrant(ServerAuthorizationCodeGrant grant)
Apache CXF