Class OAuth2AuthorizationCodeRequestAuthenticationContext.Builder
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder<OAuth2AuthorizationCodeRequestAuthenticationContext,OAuth2AuthorizationCodeRequestAuthenticationContext.Builder>
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationCodeRequestAuthenticationContext.Builder
- Enclosing class:
- OAuth2AuthorizationCodeRequestAuthenticationContext
public static final class OAuth2AuthorizationCodeRequestAuthenticationContext.Builder
extends OAuth2AuthenticationContext.AbstractBuilder<OAuth2AuthorizationCodeRequestAuthenticationContext,OAuth2AuthorizationCodeRequestAuthenticationContext.Builder>
A builder for
OAuth2AuthorizationCodeRequestAuthenticationContext.-
Method Summary
Modifier and TypeMethodDescriptionauthorizationConsent(OAuth2AuthorizationConsent authorizationConsent) Sets theauthorization consent.authorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest) Sets theauthorization request.build()Builds a newOAuth2AuthorizationCodeRequestAuthenticationContext.registeredClient(RegisteredClient registeredClient) Sets theregistered client.Methods inherited from class org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder
context, get, getContext, getThis, put
-
Method Details
-
registeredClient
public OAuth2AuthorizationCodeRequestAuthenticationContext.Builder registeredClient(RegisteredClient registeredClient) Sets theregistered client.- Parameters:
registeredClient- theRegisteredClient- Returns:
- the
OAuth2AuthorizationCodeRequestAuthenticationContext.Builderfor further configuration
-
authorizationRequest
public OAuth2AuthorizationCodeRequestAuthenticationContext.Builder authorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest) Sets theauthorization request.- Parameters:
authorizationRequest- theOAuth2AuthorizationRequest- Returns:
- the
OAuth2AuthorizationCodeRequestAuthenticationContext.Builderfor further configuration - Since:
- 1.3
-
authorizationConsent
public OAuth2AuthorizationCodeRequestAuthenticationContext.Builder authorizationConsent(OAuth2AuthorizationConsent authorizationConsent) Sets theauthorization consent.- Parameters:
authorizationConsent- theOAuth2AuthorizationConsent- Returns:
- the
OAuth2AuthorizationCodeRequestAuthenticationContext.Builderfor further configuration - Since:
- 1.3
-
build
Builds a newOAuth2AuthorizationCodeRequestAuthenticationContext.
-