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