Class OidcUserInfoAuthenticationContext
java.lang.Object
org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext
- All Implemented Interfaces:
OAuth2AuthenticationContext,Context
public final class OidcUserInfoAuthenticationContext
extends Object
implements OAuth2AuthenticationContext
An
OAuth2AuthenticationContext that holds an
OidcUserInfoAuthenticationToken and additional information and is used when
mapping claims to an instance of OidcUserInfo.- Since:
- 0.2.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forOidcUserInfoAuthenticationContext.Nested classes/interfaces inherited from interface org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext
OAuth2AuthenticationContext.AbstractBuilder<T extends OAuth2AuthenticationContext,B extends OAuth2AuthenticationContext.AbstractBuilder<T, B>> -
Method Summary
Modifier and TypeMethodDescription<V> VReturns the value of the attribute associated to the key.org.springframework.security.oauth2.core.OAuth2AccessTokenReturns theOAuth 2.0 Access Token.Returns theauthorization.booleanReturnstrueif an attribute associated to the key exists,falseotherwise.with(OidcUserInfoAuthenticationToken authentication) Constructs a newOidcUserInfoAuthenticationContext.Builderwith the providedOidcUserInfoAuthenticationToken.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.authentication.OAuth2AuthenticationContext
getAuthentication
-
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. -
getAccessToken
public org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken()Returns theOAuth 2.0 Access Token.- Returns:
- the
OAuth2AccessToken
-
getAuthorization
Returns theauthorization.- Returns:
- the
OAuth2Authorization
-
with
public static OidcUserInfoAuthenticationContext.Builder with(OidcUserInfoAuthenticationToken authentication) Constructs a newOidcUserInfoAuthenticationContext.Builderwith the providedOidcUserInfoAuthenticationToken.- Parameters:
authentication- theOidcUserInfoAuthenticationToken- Returns:
- the
OidcUserInfoAuthenticationContext.Builder
-