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) |
abstract List<ServerAuthorizationCodeGrant> |
getCodeGrants(Client c) |
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, getAccessTokens, getMessageContext, getPermissionMap, getPreauthorizedToken, getRefreshToken, getRefreshTokens, handleLinkedRefreshToken, init, isRefreshTokenSupported, refreshAccessToken, removeAccessToken, removeClientTokens, revokeAccessToken, revokeAccessTokens, revokeRefreshToken, revokeToken, saveAccessToken, saveRefreshToken, setAccessTokenLifetime, setMessageContext, setPermissionMap, setRecycleRefreshTokens, setRefreshTokenLifetime, setScopes, unlinkRefreshAccessToken, updateRefreshTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveCodeGrantconvertScopeToPermissions, createAccessToken, getAccessToken, getClient, getPreauthorizedToken, refreshAccessToken, removeAccessToken, revokeTokenpublic 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)
public static ServerAuthorizationCodeGrant initCodeGrant(AuthorizationCodeRegistration reg, long lifetime)
protected void removeClientCodeGrants(Client c)
protected abstract void saveCodeGrant(ServerAuthorizationCodeGrant grant)
public abstract List<ServerAuthorizationCodeGrant> getCodeGrants(Client c)
Apache CXF