Class OAuth2ClientAuthenticationContext.Builder
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder<OAuth2ClientAuthenticationContext,OAuth2ClientAuthenticationContext.Builder>
org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationContext.Builder
- Enclosing class:
- OAuth2ClientAuthenticationContext
public static final class OAuth2ClientAuthenticationContext.Builder
extends OAuth2AuthenticationContext.AbstractBuilder<OAuth2ClientAuthenticationContext,OAuth2ClientAuthenticationContext.Builder>
A builder for
OAuth2ClientAuthenticationContext.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newOAuth2ClientAuthenticationContext.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 OAuth2ClientAuthenticationContext.Builder registeredClient(RegisteredClient registeredClient) Sets theregistered client.- Parameters:
registeredClient- theRegisteredClient- Returns:
- the
OAuth2ClientAuthenticationContext.Builderfor further configuration
-
build
Builds a newOAuth2ClientAuthenticationContext.- Specified by:
buildin classOAuth2AuthenticationContext.AbstractBuilder<OAuth2ClientAuthenticationContext,OAuth2ClientAuthenticationContext.Builder> - Returns:
- the
OAuth2ClientAuthenticationContext
-