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