Class OAuth2AuthorizationConsentAuthenticationContext.Builder
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder<OAuth2AuthorizationConsentAuthenticationContext,OAuth2AuthorizationConsentAuthenticationContext.Builder>
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationConsentAuthenticationContext.Builder
- Enclosing class:
- OAuth2AuthorizationConsentAuthenticationContext
public static final class OAuth2AuthorizationConsentAuthenticationContext.Builder
extends OAuth2AuthenticationContext.AbstractBuilder<OAuth2AuthorizationConsentAuthenticationContext,OAuth2AuthorizationConsentAuthenticationContext.Builder>
A builder for
OAuth2AuthorizationConsentAuthenticationContext
.-
Method Summary
Modifier and TypeMethodDescriptionauthorization
(OAuth2Authorization authorization) Sets theauthorization
.authorizationConsent
(OAuth2AuthorizationConsent.Builder authorizationConsent) Sets theauthorization consent builder
.authorizationRequest
(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest) Sets theauthorization request
.build()
Builds a newOAuth2AuthorizationConsentAuthenticationContext
.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
-
authorizationConsent
public OAuth2AuthorizationConsentAuthenticationContext.Builder authorizationConsent(OAuth2AuthorizationConsent.Builder authorizationConsent) Sets theauthorization consent builder
.- Parameters:
authorizationConsent
- theOAuth2AuthorizationConsent.Builder
- Returns:
- the
OAuth2AuthorizationConsentAuthenticationContext.Builder
for further configuration
-
registeredClient
public OAuth2AuthorizationConsentAuthenticationContext.Builder registeredClient(RegisteredClient registeredClient) Sets theregistered client
.- Parameters:
registeredClient
- theRegisteredClient
- Returns:
- the
OAuth2AuthorizationConsentAuthenticationContext.Builder
for further configuration
-
authorization
public OAuth2AuthorizationConsentAuthenticationContext.Builder authorization(OAuth2Authorization authorization) Sets theauthorization
.- Parameters:
authorization
- theOAuth2Authorization
- Returns:
- the
OAuth2AuthorizationConsentAuthenticationContext.Builder
for further configuration
-
authorizationRequest
public OAuth2AuthorizationConsentAuthenticationContext.Builder authorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest) Sets theauthorization request
.- Parameters:
authorizationRequest
- theOAuth2AuthorizationRequest
- Returns:
- the
OAuth2AuthorizationConsentAuthenticationContext.Builder
for further configuration
-
build
Builds a newOAuth2AuthorizationConsentAuthenticationContext
.
-