Class OAuth2AccessTokenAuthenticationContext.Builder
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder<OAuth2AccessTokenAuthenticationContext,OAuth2AccessTokenAuthenticationContext.Builder>
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AccessTokenAuthenticationContext.Builder
- Enclosing class:
- OAuth2AccessTokenAuthenticationContext
public static final class OAuth2AccessTokenAuthenticationContext.Builder
extends OAuth2AuthenticationContext.AbstractBuilder<OAuth2AccessTokenAuthenticationContext,OAuth2AccessTokenAuthenticationContext.Builder>
A builder for
OAuth2AccessTokenAuthenticationContext
.-
Method Summary
Modifier and TypeMethodDescriptionaccessTokenResponse
(org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse.Builder accessTokenResponse) Sets theaccess token response builder
.build()
Builds a newOAuth2AccessTokenAuthenticationContext
.Methods inherited from class org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationContext.AbstractBuilder
context, get, getContext, getThis, put
-
Method Details
-
accessTokenResponse
public OAuth2AccessTokenAuthenticationContext.Builder accessTokenResponse(org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse.Builder accessTokenResponse) Sets theaccess token response builder
.- Parameters:
accessTokenResponse
- theOAuth2AccessTokenResponse.Builder
- Returns:
- the
OAuth2AccessTokenAuthenticationContext.Builder
for further configuration
-
build
Builds a newOAuth2AccessTokenAuthenticationContext
.
-