public final class OidcUserInfoAuthenticationContext extends OAuth2AuthenticationContext
OAuth2AuthenticationContext that holds an OidcUserInfoAuthenticationToken and additional information
and is used when mapping claims to an instance of OidcUserInfo.OAuth2AuthenticationContext,
OidcUserInfoAuthenticationProvider.setUserInfoMapper(Function)| Modifier and Type | Class and Description |
|---|---|
static class |
OidcUserInfoAuthenticationContext.Builder
A builder for
OidcUserInfoAuthenticationContext. |
OAuth2AuthenticationContext.AbstractBuilder<T extends OAuth2AuthenticationContext,B extends OAuth2AuthenticationContext.AbstractBuilder<T,B>>| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.core.OAuth2AccessToken |
getAccessToken()
Returns the
OAuth 2.0 Access Token. |
OAuth2Authorization |
getAuthorization()
Returns the
authorization. |
static OidcUserInfoAuthenticationContext.Builder |
with(OidcUserInfoAuthenticationToken authentication)
Constructs a new
OidcUserInfoAuthenticationContext.Builder with the provided OidcUserInfoAuthenticationToken. |
get, getAuthentication, hasKeypublic org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken()
OAuth 2.0 Access Token.OAuth2AccessTokenpublic OAuth2Authorization getAuthorization()
authorization.OAuth2Authorizationpublic static OidcUserInfoAuthenticationContext.Builder with(OidcUserInfoAuthenticationToken authentication)
OidcUserInfoAuthenticationContext.Builder with the provided OidcUserInfoAuthenticationToken.authentication - the OidcUserInfoAuthenticationTokenOidcUserInfoAuthenticationContext.Builder