public final class OAuth2ClientAuthenticationConfigurer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
OAuth2ClientAuthenticationConfigurer |
authenticationConverter(org.springframework.security.web.authentication.AuthenticationConverter authenticationConverter)
Sets the
AuthenticationConverter used when attempting to extract client credentials from HttpServletRequest
to an instance of OAuth2ClientAuthenticationToken used for authenticating the client. |
OAuth2ClientAuthenticationConfigurer |
authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
Adds an
AuthenticationProvider used for authenticating an OAuth2ClientAuthenticationToken. |
OAuth2ClientAuthenticationConfigurer |
authenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler)
Sets the
AuthenticationSuccessHandler used for handling a successful client authentication
and associating the OAuth2ClientAuthenticationToken to the SecurityContext. |
OAuth2ClientAuthenticationConfigurer |
errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
Sets the
AuthenticationFailureHandler used for handling a failed client authentication
and returning the Error Response. |
protected org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> |
getObjectPostProcessor() |
protected <T> T |
postProcess(T object) |
public OAuth2ClientAuthenticationConfigurer authenticationConverter(org.springframework.security.web.authentication.AuthenticationConverter authenticationConverter)
AuthenticationConverter used when attempting to extract client credentials from HttpServletRequest
to an instance of OAuth2ClientAuthenticationToken used for authenticating the client.authenticationConverter - the AuthenticationConverter used when attempting to extract client credentials from HttpServletRequestOAuth2ClientAuthenticationConfigurer for further configurationpublic OAuth2ClientAuthenticationConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
AuthenticationProvider used for authenticating an OAuth2ClientAuthenticationToken.authenticationProvider - an AuthenticationProvider used for authenticating an OAuth2ClientAuthenticationTokenOAuth2ClientAuthenticationConfigurer for further configurationpublic OAuth2ClientAuthenticationConfigurer authenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler)
AuthenticationSuccessHandler used for handling a successful client authentication
and associating the OAuth2ClientAuthenticationToken to the SecurityContext.authenticationSuccessHandler - the AuthenticationSuccessHandler used for handling a successful client authenticationOAuth2ClientAuthenticationConfigurer for further configurationpublic OAuth2ClientAuthenticationConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
AuthenticationFailureHandler used for handling a failed client authentication
and returning the Error Response.errorResponseHandler - the AuthenticationFailureHandler used for handling a failed client authenticationOAuth2ClientAuthenticationConfigurer for further configurationprotected final <T> T postProcess(T object)
protected final org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> getObjectPostProcessor()