Class DefaultOAuth2TokenContext
java.lang.Object
org.springframework.security.oauth2.server.authorization.token.DefaultOAuth2TokenContext
- All Implemented Interfaces:
Context
,OAuth2TokenContext
Default implementation of
OAuth2TokenContext
.- Since:
- 0.2.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.oauth2.server.authorization.token.OAuth2TokenContext
OAuth2TokenContext.AbstractBuilder<T extends OAuth2TokenContext,
B extends OAuth2TokenContext.AbstractBuilder<T, B>> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a newDefaultOAuth2TokenContext.Builder
.<V> V
Returns the value of the attribute associated to the key.boolean
Returnstrue
if an attribute associated to the key exists,false
otherwise.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.oauth2.server.authorization.context.Context
get
Methods inherited from interface org.springframework.security.oauth2.server.authorization.token.OAuth2TokenContext
getAuthorization, getAuthorizationGrant, getAuthorizationGrantType, getAuthorizationServerContext, getAuthorizedScopes, getPrincipal, getRegisteredClient, getTokenType
-
Method Details
-
get
Description copied from interface:Context
Returns the value of the attribute associated to the key. -
hasKey
Description copied from interface:Context
Returnstrue
if an attribute associated to the key exists,false
otherwise. -
builder
Returns a newDefaultOAuth2TokenContext.Builder
.- Returns:
- the
DefaultOAuth2TokenContext.Builder
-