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 class
A 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> V
Returns the value of the attribute associated to the key.org.springframework.security.oauth2.core.OAuth2AccessToken
Returns theOAuth 2.0 Access Token
.Returns theauthorization
.boolean
Returnstrue
if an attribute associated to the key exists,false
otherwise.with
(OidcUserInfoAuthenticationToken authentication) Constructs a newOidcUserInfoAuthenticationContext.Builder
with the providedOidcUserInfoAuthenticationToken
.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.authentication.OAuth2AuthenticationContext
getAuthentication
-
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. -
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.Builder
with the providedOidcUserInfoAuthenticationToken
.- Parameters:
authentication
- theOidcUserInfoAuthenticationToken
- Returns:
- the
OidcUserInfoAuthenticationContext.Builder
-