public class DefaultEncryptingOAuthDataProvider extends AbstractOAuthDataProvider
Constructor and Description |
---|
DefaultEncryptingOAuthDataProvider(KeyProperties props) |
DefaultEncryptingOAuthDataProvider(SecretKey key) |
DefaultEncryptingOAuthDataProvider(String algo,
int keySize) |
Modifier and Type | Method and Description |
---|---|
Client |
doGetClient(String clientId) |
void |
doRemoveClient(Client c) |
protected void |
doRevokeAccessToken(ServerAccessToken at) |
protected void |
doRevokeRefreshToken(RefreshToken rt) |
ServerAccessToken |
getAccessToken(String accessToken)
Get access token
|
List<ServerAccessToken> |
getAccessTokens(Client c,
UserSubject sub)
Return all access tokens associated with a given client
|
List<Client> |
getClients(UserSubject resourceOwner)
Get a list of clients registered by a resource owner.
|
protected RefreshToken |
getRefreshToken(String refreshTokenKey) |
List<RefreshToken> |
getRefreshTokens(Client c,
UserSubject sub)
Return all refresh tokens associated with a given client
|
protected void |
saveAccessToken(ServerAccessToken serverToken) |
protected void |
saveRefreshToken(RefreshToken refreshToken) |
void |
setClient(Client client)
Set a Client
|
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, removeClient, 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
protected SecretKey key
public DefaultEncryptingOAuthDataProvider(String algo, int keySize)
public DefaultEncryptingOAuthDataProvider(KeyProperties props)
public DefaultEncryptingOAuthDataProvider(SecretKey key)
public Client doGetClient(String clientId) throws OAuthServiceException
doGetClient
in class AbstractOAuthDataProvider
OAuthServiceException
public void setClient(Client client)
ClientRegistrationProvider
client
- the clientpublic void doRemoveClient(Client c)
doRemoveClient
in class AbstractOAuthDataProvider
public List<Client> getClients(UserSubject resourceOwner)
ClientRegistrationProvider
resourceOwner
- the resource owner, can be nullpublic List<ServerAccessToken> getAccessTokens(Client c, UserSubject sub)
OAuthDataProvider
c
- the clientsub
- the user subject, can be nullpublic List<RefreshToken> getRefreshTokens(Client c, UserSubject sub)
OAuthDataProvider
c
- the clientsub
- the user subject, can be nullpublic ServerAccessToken getAccessToken(String accessToken) throws OAuthServiceException
OAuthDataProvider
accessToken
- the token keyOAuthServiceException
protected void saveAccessToken(ServerAccessToken serverToken)
saveAccessToken
in class AbstractOAuthDataProvider
protected void doRevokeAccessToken(ServerAccessToken at)
doRevokeAccessToken
in class AbstractOAuthDataProvider
protected void saveRefreshToken(RefreshToken refreshToken)
saveRefreshToken
in class AbstractOAuthDataProvider
protected void doRevokeRefreshToken(RefreshToken rt)
doRevokeRefreshToken
in class AbstractOAuthDataProvider
protected RefreshToken getRefreshToken(String refreshTokenKey)
getRefreshToken
in class AbstractOAuthDataProvider
Apache CXF