public final class OAuth2TokenClaimsContext extends java.lang.Object implements OAuth2TokenContext
OAuth2TokenContext implementation that provides access
to the claims of an OAuth 2.0 Token, allowing the ability to customize.OAuth2TokenContext,
OAuth2TokenClaimsSet.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
OAuth2TokenClaimsContext.Builder
A builder for
OAuth2TokenClaimsContext. |
OAuth2TokenContext.AbstractBuilder<T extends OAuth2TokenContext,B extends OAuth2TokenContext.AbstractBuilder<T,B>>| Modifier and Type | Method and Description |
|---|---|
<V> V |
get(java.lang.Object key)
Returns the value of the attribute associated to the key.
|
OAuth2TokenClaimsSet.Builder |
getClaims()
Returns the
claims
allowing the ability to add, replace, or remove. |
boolean |
hasKey(java.lang.Object key)
Returns
true if an attribute associated to the key exists, false otherwise. |
static OAuth2TokenClaimsContext.Builder |
with(OAuth2TokenClaimsSet.Builder claimsBuilder)
Constructs a new
OAuth2TokenClaimsContext.Builder with the provided claims. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthorization, getAuthorizationGrant, getAuthorizationGrantType, getAuthorizedScopes, getPrincipal, getProviderContext, getRegisteredClient, getTokenType@Nullable public <V> V get(java.lang.Object key)
Contextpublic boolean hasKey(java.lang.Object key)
Contexttrue if an attribute associated to the key exists, false otherwise.public OAuth2TokenClaimsSet.Builder getClaims()
claims
allowing the ability to add, replace, or remove.OAuth2TokenClaimsSet.Builderpublic static OAuth2TokenClaimsContext.Builder with(OAuth2TokenClaimsSet.Builder claimsBuilder)
OAuth2TokenClaimsContext.Builder with the provided claims.claimsBuilder - the claims to initialize the builderOAuth2TokenClaimsContext.Builder