Class AbstractAuthorizationCodeDataProvider
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.provider.AbstractOAuthDataProvider
-
- org.apache.cxf.rs.security.oauth2.grants.code.AbstractAuthorizationCodeDataProvider
-
- All Implemented Interfaces:
AuthorizationCodeDataProvider,ClientRegistrationProvider,OAuthDataProvider
public abstract class AbstractAuthorizationCodeDataProvider extends AbstractOAuthDataProvider implements AuthorizationCodeDataProvider
Abstract AuthorizationCodeDataProvider implementation
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthorizationCodeDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerAuthorizationCodeGrantcreateCodeGrant(AuthorizationCodeRegistration reg)Creates a temporarily code grant which will capture the information about theClientrequesting the access to the resource owner's resourcesprotected List<String>getApprovedScopes(AuthorizationCodeRegistration reg)protected StringgetCode(AuthorizationCodeRegistration reg)longgetGrantLifetime()protected longgetIssuedAt()voidsetGrantLifetime(long lifetime)-
Methods inherited from class org.apache.cxf.rs.security.oauth2.provider.AbstractOAuthDataProvider
authenticateUnregisteredClient, checkRequestedScopes, close, convertScopeToPermissions, convertSingleScopeToPermission, convertToJWTAccessToken, createAccessToken, createClientCredentialsClient, createJwtAccessToken, createNewAccessToken, createNewRefreshToken, doCreateAccessToken, doCreateAccessToken, doCreateNewRefreshToken, doGetClient, doRefreshAccessToken, doRemoveClient, doRevokeAccessToken, doRevokeRefreshToken, getClient, getCurrentClientSecret, getCurrentRequestedGrantType, getCurrentTokenRequestParams, getDefaultScopes, getInvisibleToClientScopes, getIssuer, getJwtAccessTokenClaimMap, getJwtAccessTokenProducer, getMessageContext, getPermissionMap, getPreauthorizedToken, getRefreshToken, getRequiredScopes, handleLinkedRefreshToken, init, isClientMatched, isPersistJwtEncoding, isRecycleRefreshTokens, isRefreshTokenSupported, isSupportPreauthorizedTokens, isTokenMatched, isUseJwtFormatForAccessTokens, linkAccessTokenToRefreshToken, linkRefreshTokenToAccessToken, processJwtAccessToken, refreshAccessToken, removeClient, removeClientTokens, revokeAccessToken, revokeAccessTokens, revokeRefreshToken, revokeToken, saveAccessToken, saveRefreshToken, setAccessTokenLifetime, setAuthenticationStrategy, setClients, setDefaultScopes, setInvisibleToClientScopes, setIssuer, setJwtAccessTokenClaimMap, setJwtAccessTokenProducer, setMessageContext, setPermissionMap, setPersistJwtEncoding, setRecycleRefreshTokens, setRefreshTokenLifetime, setRequiredScopes, setSupportedScopes, setSupportPreauthorizedTokens, setUseJwtFormatForAccessTokens, unlinkRefreshAccessToken, updateExistingRefreshToken, updateRefreshToken
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeDataProvider
getCodeGrants, removeCodeGrant
-
Methods inherited from interface org.apache.cxf.rs.security.oauth2.provider.ClientRegistrationProvider
getClients, setClient
-
Methods inherited from interface org.apache.cxf.rs.security.oauth2.provider.OAuthDataProvider
convertScopeToPermissions, createAccessToken, getAccessToken, getAccessTokens, getClient, getPreauthorizedToken, getRefreshTokens, refreshAccessToken, revokeToken
-
-
-
-
Method Detail
-
createCodeGrant
public ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
Description copied from interface:AuthorizationCodeDataProviderCreates a temporarily code grant which will capture the information about theClientrequesting the access to the resource owner's resources- Specified by:
createCodeGrantin interfaceAuthorizationCodeDataProvider- Parameters:
reg- information about the client code grant request- Returns:
- new code grant
- Throws:
OAuthServiceException- See Also:
AuthorizationCodeRegistration,ServerAuthorizationCodeGrant
-
getApprovedScopes
protected List<String> getApprovedScopes(AuthorizationCodeRegistration reg)
-
getCode
protected String getCode(AuthorizationCodeRegistration reg)
-
getGrantLifetime
public long getGrantLifetime()
-
setGrantLifetime
public void setGrantLifetime(long lifetime)
-
getIssuedAt
protected long getIssuedAt()
-
-