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 ClassesNested 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> VReturns the value of the attribute associated to the key.booleanReturnstrueif an attribute associated to the key exists,falseotherwise.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.oauth2.server.authorization.context.Context
getMethods 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:ContextReturns the value of the attribute associated to the key. -
hasKey
Description copied from interface:ContextReturnstrueif an attribute associated to the key exists,falseotherwise. -
builder
Returns a newDefaultOAuth2TokenContext.Builder.- Returns:
- the
DefaultOAuth2TokenContext.Builder
-