All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
| Modifier and Type |
Method |
Description |
protected boolean |
authenticateUnregisteredClient(String clientId,
String clientSecret) |
|
protected void |
checkRequestedScopes(Client client,
List<String> requestedScopes) |
|
void |
close() |
|
List<OAuthPermission> |
convertScopeToPermissions(Client client,
List<String> requestedScopes) |
Converts the requested scopes to the list of permissions.
|
protected void |
convertSingleScopeToPermission(Client client,
String scope,
List<OAuthPermission> perms) |
|
protected void |
convertToJWTAccessToken(ServerAccessToken at) |
|
ServerAccessToken |
createAccessToken(AccessTokenRegistration reg) |
Create access token
|
protected Client |
createClientCredentialsClient(String clientId,
String password) |
|
protected JwtClaims |
createJwtAccessToken(ServerAccessToken at) |
|
protected ServerAccessToken |
createNewAccessToken(Client client,
UserSubject userSub) |
|
protected RefreshToken |
createNewRefreshToken(ServerAccessToken at) |
|
protected ServerAccessToken |
doCreateAccessToken(List<String> audiences,
Client client,
String clientCodeVerifier,
Map<String,String> extraProperties,
String grantCode,
String grantType,
String nonce,
String responseType,
List<OAuthPermission> scopes,
UserSubject userSubject) |
|
protected ServerAccessToken |
doCreateAccessToken(AccessTokenRegistration atReg) |
|
protected RefreshToken |
doCreateNewRefreshToken(ServerAccessToken at) |
|
protected abstract Client |
doGetClient(String clientId) |
|
protected ServerAccessToken |
doRefreshAccessToken(Client client,
RefreshToken oldRefreshToken,
List<String> restrictedScopes) |
|
protected abstract void |
doRemoveClient(Client c) |
|
protected abstract void |
doRevokeAccessToken(ServerAccessToken accessToken) |
|
protected abstract void |
doRevokeRefreshToken(RefreshToken refreshToken) |
|
Client |
getClient(String clientId) |
Returns the previously registered third-party Client
|
protected String |
getCurrentClientSecret() |
|
protected String |
getCurrentRequestedGrantType() |
|
protected javax.ws.rs.core.MultivaluedMap<String,String> |
getCurrentTokenRequestParams() |
|
List<String> |
getDefaultScopes() |
|
List<String> |
getInvisibleToClientScopes() |
|
String |
getIssuer() |
|
Map<String,String> |
getJwtAccessTokenClaimMap() |
|
OAuthJoseJwtProducer |
getJwtAccessTokenProducer() |
|
MessageContext |
getMessageContext() |
|
Map<String,OAuthPermission> |
getPermissionMap() |
|
ServerAccessToken |
getPreauthorizedToken(Client client,
List<String> requestedScopes,
UserSubject sub,
String grantType) |
Get preauthorized access token
|
protected abstract RefreshToken |
getRefreshToken(String refreshTokenKey) |
|
List<String> |
getRequiredScopes() |
|
protected void |
handleLinkedRefreshToken(Client client,
ServerAccessToken accessToken) |
|
void |
init() |
|
protected static boolean |
isClientMatched(Client c,
UserSubject resourceOwner) |
|
boolean |
isPersistJwtEncoding() |
|
boolean |
isRecycleRefreshTokens() |
|
protected boolean |
isRefreshTokenSupported(List<String> theScopes) |
|
boolean |
isSupportPreauthorizedTokens() |
|
protected static boolean |
isTokenMatched(ServerAccessToken token,
Client c,
UserSubject sub) |
|
boolean |
isUseJwtFormatForAccessTokens() |
|
protected void |
linkAccessTokenToRefreshToken(RefreshToken rt,
ServerAccessToken at) |
|
protected void |
linkRefreshTokenToAccessToken(RefreshToken rt,
ServerAccessToken at) |
|
protected String |
processJwtAccessToken(JwtClaims jwtCliams) |
|
ServerAccessToken |
refreshAccessToken(Client client,
String refreshTokenKey,
List<String> restrictedScopes) |
Refresh access token
|
Client |
removeClient(String clientId) |
Remove a Client with the given id
|
protected void |
removeClientTokens(Client c) |
|
protected ServerAccessToken |
revokeAccessToken(Client client,
String accessTokenKey) |
|
protected void |
revokeAccessTokens(Client client,
RefreshToken currentRefreshToken) |
|
protected RefreshToken |
revokeRefreshToken(Client client,
String refreshTokenKey) |
|
void |
revokeToken(Client client,
String tokenKey,
String tokenTypeHint) |
Revokes a refresh or access token
|
protected abstract void |
saveAccessToken(ServerAccessToken serverToken) |
|
protected abstract void |
saveRefreshToken(RefreshToken refreshToken) |
|
void |
setAccessTokenLifetime(long accessTokenLifetime) |
|
void |
setAuthenticationStrategy(ProviderAuthenticationStrategy authenticationStrategy) |
|
void |
setClients(List<Client> clients) |
|
void |
setDefaultScopes(List<String> defaultScopes) |
|
void |
setInvisibleToClientScopes(List<String> invisibleToClientScopes) |
|
void |
setIssuer(String issuer) |
|
void |
setJwtAccessTokenClaimMap(Map<String,String> jwtAccessTokenClaimMap) |
|
void |
setJwtAccessTokenProducer(OAuthJoseJwtProducer jwtAccessTokenProducer) |
|
void |
setMessageContext(MessageContext messageContext) |
|
void |
setPermissionMap(Map<String,OAuthPermission> permissionMap) |
|
void |
setPersistJwtEncoding(boolean persistJwtEncoding) |
|
void |
setRecycleRefreshTokens(boolean recycleRefreshTokens) |
|
void |
setRefreshTokenLifetime(long refreshTokenLifetime) |
|
void |
setRequiredScopes(List<String> requiredScopes) |
|
void |
setSupportedScopes(Map<String,String> scopes) |
|
void |
setSupportPreauthorizedTokens(boolean supportPreauthorizedTokens) |
|
void |
setUseJwtFormatForAccessTokens(boolean useJwtFormatForAccessTokens) |
|
protected void |
unlinkRefreshAccessToken(RefreshToken rt,
String tokenKey) |
|
protected RefreshToken |
updateExistingRefreshToken(RefreshToken rt,
ServerAccessToken at) |
|
protected RefreshToken |
updateRefreshToken(RefreshToken rt,
ServerAccessToken at) |
|