Class OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
-
- Enclosing class:
- OAuth2ClientConfigurer<B extends HttpSecurityBuilder<B>>
public final class OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer extends java.lang.Object
Configuration options for the OAuth 2.0 Authorization Code Grant.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
accessTokenResponseClient(OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
Sets the client used for requesting the access token credential from the Token Endpoint.OAuth2ClientConfigurer<B>
and()
Returns theOAuth2ClientConfigurer
for further configuration.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
authorizationRequestRepository(AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets the repository used for storingOAuth2AuthorizationRequest
's.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
authorizationRequestResolver(OAuth2AuthorizationRequestResolver authorizationRequestResolver)
Sets the resolver used for resolvingOAuth2AuthorizationRequest
's.
-
-
-
Method Detail
-
authorizationRequestResolver
public OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer authorizationRequestResolver(OAuth2AuthorizationRequestResolver authorizationRequestResolver)
Sets the resolver used for resolvingOAuth2AuthorizationRequest
's.- Parameters:
authorizationRequestResolver
- the resolver used for resolvingOAuth2AuthorizationRequest
's- Returns:
- the
OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
for further configuration
-
authorizationRequestRepository
public OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer authorizationRequestRepository(AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets the repository used for storingOAuth2AuthorizationRequest
's.- Parameters:
authorizationRequestRepository
- the repository used for storingOAuth2AuthorizationRequest
's- Returns:
- the
OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
for further configuration
-
accessTokenResponseClient
public OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer accessTokenResponseClient(OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
Sets the client used for requesting the access token credential from the Token Endpoint.- Parameters:
accessTokenResponseClient
- the client used for requesting the access token credential from the Token Endpoint- Returns:
- the
OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
for further configuration
-
and
public OAuth2ClientConfigurer<B> and()
Returns theOAuth2ClientConfigurer
for further configuration.- Returns:
- the
OAuth2ClientConfigurer
-
-