public class DefaultEncryptingCodeDataProvider extends DefaultEncryptingOAuthDataProvider implements AuthorizationCodeDataProvider
key
Constructor and Description |
---|
DefaultEncryptingCodeDataProvider(KeyProperties props) |
DefaultEncryptingCodeDataProvider(SecretKey key) |
DefaultEncryptingCodeDataProvider(String algo,
int keySize) |
doGetClient, doRemoveClient, doRevokeAccessToken, doRevokeRefreshToken, getAccessToken, getAccessTokens, getClients, getRefreshToken, getRefreshTokens, saveAccessToken, saveRefreshToken, setClient
authenticateUnregisteredClient, checkRequestedScopes, close, convertScopeToPermissions, convertSingleScopeToPermission, createAccessToken, createClientCredentialsClient, createJwtAccessToken, createNewAccessToken, createNewRefreshToken, doCreateAccessToken, doCreateNewRefreshToken, doRefreshAccessToken, getClient, getCurrentClientSecret, getCurrentRequestedGrantType, getCurrentTokenRequestParams, getDefaultScopes, getInvisibleToClientScopes, getIssuer, getJwtAccessTokenClaimMap, getJwtAccessTokenProducer, getMessageContext, getPermissionMap, getPreauthorizedToken, getRequiredScopes, handleLinkedRefreshToken, init, isClientMatched, isPersistJwtEncoding, isRecycleRefreshTokens, isRefreshTokenSupported, isSupportPreauthorizedTokens, isTokenMatched, isUseJwtFormatForAccessTokens, linkAccessTokenToRefreshToken, linkRefreshTokenToAccessToken, processJwtAccessToken, refreshAccessToken, removeClientTokens, revokeAccessToken, revokeAccessTokens, revokeRefreshToken, revokeToken, setAccessTokenLifetime, setAuthenticationStrategy, setClients, setDefaultScopes, setInvisibleToClientScopes, setIssuer, setJwtAccessTokenClaimMap, setJwtAccessTokenProducer, setMessageContext, setPermissionMap, setPersistJwtEncoding, setRecycleRefreshTokens, setRefreshTokenLifetime, setRequiredScopes, setSupportedScopes, setSupportPreauthorizedTokens, setUseJwtFormatForAccessTokens, unlinkRefreshAccessToken, updateExistingRefreshToken, updateRefreshToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertScopeToPermissions, createAccessToken, getAccessToken, getAccessTokens, getClient, getPreauthorizedToken, getRefreshTokens, refreshAccessToken, revokeToken
public DefaultEncryptingCodeDataProvider(String algo, int keySize)
public DefaultEncryptingCodeDataProvider(KeyProperties props)
public DefaultEncryptingCodeDataProvider(SecretKey key)
public Client removeClient(String clientId)
ClientRegistrationProvider
removeClient
in interface ClientRegistrationProvider
removeClient
in class AbstractOAuthDataProvider
clientId
- the client idprotected void removeClientCodeGrants(Client c)
public ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
AuthorizationCodeDataProvider
Client
requesting the access to
the resource owner's resourcescreateCodeGrant
in interface AuthorizationCodeDataProvider
reg
- information about the client code grant requestOAuthServiceException
AuthorizationCodeRegistration
,
ServerAuthorizationCodeGrant
public List<ServerAuthorizationCodeGrant> getCodeGrants(Client c, UserSubject sub)
AuthorizationCodeDataProvider
getCodeGrants
in interface AuthorizationCodeDataProvider
c
- the clientsub
- the user subject, can be nullServerAuthorizationCodeGrant
public ServerAuthorizationCodeGrant removeCodeGrant(String code) throws OAuthServiceException
AuthorizationCodeDataProvider
ServerAuthorizationCodeGrant
removeCodeGrant
in interface AuthorizationCodeDataProvider
code
- the code grantOAuthServiceException
- if no grant with this code is availableServerAuthorizationCodeGrant
public ServerAuthorizationCodeGrant getCodeGrant(String code) throws OAuthServiceException
OAuthServiceException
protected ServerAuthorizationCodeGrant doCreateCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
OAuthServiceException
protected List<String> getApprovedScopes(AuthorizationCodeRegistration reg)
protected String getCode(AuthorizationCodeRegistration reg)
public long getGrantLifetime()
public void setGrantLifetime(long lifetime)
protected long getIssuedAt()
protected void saveAuthorizationGrant(ServerAuthorizationCodeGrant grant)
Apache CXF