Class OidcUserInfoAuthenticationContext.Builder
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder<OidcUserInfoAuthenticationContext,OidcUserInfoAuthenticationContext.Builder>
org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext.Builder
- Enclosing class:
- OidcUserInfoAuthenticationContext
public static final class OidcUserInfoAuthenticationContext.Builder
extends OAuth2AuthenticationContext.AbstractBuilder<OidcUserInfoAuthenticationContext,OidcUserInfoAuthenticationContext.Builder>
A builder for
OidcUserInfoAuthenticationContext.-
Method Summary
Modifier and TypeMethodDescriptionaccessToken(org.springframework.security.oauth2.core.OAuth2AccessToken accessToken) Sets theOAuth 2.0 Access Token.authorization(OAuth2Authorization authorization) Sets theauthorization.build()Builds a newOidcUserInfoAuthenticationContext.Methods inherited from class org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder
context, get, getContext, getThis, put
-
Method Details
-
accessToken
public OidcUserInfoAuthenticationContext.Builder accessToken(org.springframework.security.oauth2.core.OAuth2AccessToken accessToken) Sets theOAuth 2.0 Access Token.- Parameters:
accessToken- theOAuth2AccessToken- Returns:
- the
OidcUserInfoAuthenticationContext.Builderfor further configuration
-
authorization
Sets theauthorization.- Parameters:
authorization- theOAuth2Authorization- Returns:
- the
OidcUserInfoAuthenticationContext.Builderfor further configuration
-
build
Builds a newOidcUserInfoAuthenticationContext.- Specified by:
buildin classOAuth2AuthenticationContext.AbstractBuilder<OidcUserInfoAuthenticationContext,OidcUserInfoAuthenticationContext.Builder> - Returns:
- the
OidcUserInfoAuthenticationContext
-