public final class OAuth2TokenEndpointConfigurer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
OAuth2TokenEndpointConfigurer |
accessTokenRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter accessTokenRequestConverter)
Sets the
AuthenticationConverter used when attempting to extract an Access Token Request from HttpServletRequest
to an instance of OAuth2AuthorizationGrantAuthenticationToken used for authenticating the authorization grant. |
OAuth2TokenEndpointConfigurer |
accessTokenResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler accessTokenResponseHandler)
Sets the
AuthenticationSuccessHandler used for handling an OAuth2AccessTokenAuthenticationToken
and returning the Access Token Response. |
OAuth2TokenEndpointConfigurer |
authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
Adds an
AuthenticationProvider used for authenticating a type of OAuth2AuthorizationGrantAuthenticationToken. |
OAuth2TokenEndpointConfigurer |
errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
Sets the
AuthenticationFailureHandler used for handling an OAuth2AuthenticationException
and returning the Error Response. |
protected org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> |
getObjectPostProcessor() |
protected <T> T |
postProcess(T object) |
public OAuth2TokenEndpointConfigurer accessTokenRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter accessTokenRequestConverter)
AuthenticationConverter used when attempting to extract an Access Token Request from HttpServletRequest
to an instance of OAuth2AuthorizationGrantAuthenticationToken used for authenticating the authorization grant.accessTokenRequestConverter - the AuthenticationConverter used when attempting to extract an Access Token Request from HttpServletRequestOAuth2TokenEndpointConfigurer for further configurationpublic OAuth2TokenEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
AuthenticationProvider used for authenticating a type of OAuth2AuthorizationGrantAuthenticationToken.authenticationProvider - an AuthenticationProvider used for authenticating a type of OAuth2AuthorizationGrantAuthenticationTokenOAuth2TokenEndpointConfigurer for further configurationpublic OAuth2TokenEndpointConfigurer accessTokenResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler accessTokenResponseHandler)
AuthenticationSuccessHandler used for handling an OAuth2AccessTokenAuthenticationToken
and returning the Access Token Response.accessTokenResponseHandler - the AuthenticationSuccessHandler used for handling an OAuth2AccessTokenAuthenticationTokenOAuth2TokenEndpointConfigurer for further configurationpublic OAuth2TokenEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
AuthenticationFailureHandler used for handling an OAuth2AuthenticationException
and returning the Error Response.errorResponseHandler - the AuthenticationFailureHandler used for handling an OAuth2AuthenticationExceptionOAuth2TokenEndpointConfigurer for further configurationprotected final <T> T postProcess(T object)
protected final org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> getObjectPostProcessor()