Class OAuth2TokenRevocationEndpointConfigurer
java.lang.Object
org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenRevocationEndpointConfigurer
Configurer for the OAuth 2.0 Token Revocation Endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationProvider
(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProvider
used for authenticating a type ofOAuth2TokenRevocationAuthenticationToken
.authenticationProviders
(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationProvider
's allowing the ability to add, remove, or customize a specificAuthenticationProvider
.errorResponseHandler
(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandler
used for handling anOAuth2AuthenticationException
and returning theError Response
.protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object>
protected final <T> T
postProcess
(T object) revocationRequestConverter
(org.springframework.security.web.authentication.AuthenticationConverter revocationRequestConverter) Adds anAuthenticationConverter
used when attempting to extract a Revoke Token Request fromHttpServletRequest
to an instance ofOAuth2TokenRevocationAuthenticationToken
used for authenticating the request.revocationRequestConverters
(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> revocationRequestConvertersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's allowing the ability to add, remove, or customize a specificAuthenticationConverter
.revocationResponseHandler
(org.springframework.security.web.authentication.AuthenticationSuccessHandler revocationResponseHandler) Sets theAuthenticationSuccessHandler
used for handling anOAuth2TokenRevocationAuthenticationToken
.
-
Method Details
-
revocationRequestConverter
public OAuth2TokenRevocationEndpointConfigurer revocationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter revocationRequestConverter) Adds anAuthenticationConverter
used when attempting to extract a Revoke Token Request fromHttpServletRequest
to an instance ofOAuth2TokenRevocationAuthenticationToken
used for authenticating the request.- Parameters:
revocationRequestConverter
- anAuthenticationConverter
used when attempting to extract a Revoke Token Request fromHttpServletRequest
- Returns:
- the
OAuth2TokenRevocationEndpointConfigurer
for further configuration
-
revocationRequestConverters
public OAuth2TokenRevocationEndpointConfigurer revocationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> revocationRequestConvertersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's allowing the ability to add, remove, or customize a specificAuthenticationConverter
.- Parameters:
revocationRequestConvertersConsumer
- theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's- Returns:
- the
OAuth2TokenRevocationEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
authenticationProvider
public OAuth2TokenRevocationEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProvider
used for authenticating a type ofOAuth2TokenRevocationAuthenticationToken
.- Parameters:
authenticationProvider
- anAuthenticationProvider
used for authenticating a type ofOAuth2TokenRevocationAuthenticationToken
- Returns:
- the
OAuth2TokenRevocationEndpointConfigurer
for further configuration
-
authenticationProviders
public OAuth2TokenRevocationEndpointConfigurer authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationProvider
's allowing the ability to add, remove, or customize a specificAuthenticationProvider
.- Parameters:
authenticationProvidersConsumer
- theConsumer
providing access to theList
of default and (optionally) addedAuthenticationProvider
's- Returns:
- the
OAuth2TokenRevocationEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
revocationResponseHandler
public OAuth2TokenRevocationEndpointConfigurer revocationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler revocationResponseHandler) Sets theAuthenticationSuccessHandler
used for handling anOAuth2TokenRevocationAuthenticationToken
.- Parameters:
revocationResponseHandler
- theAuthenticationSuccessHandler
used for handling anOAuth2TokenRevocationAuthenticationToken
- Returns:
- the
OAuth2TokenRevocationEndpointConfigurer
for further configuration
-
errorResponseHandler
public OAuth2TokenRevocationEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandler
used for handling anOAuth2AuthenticationException
and returning theError Response
.- Parameters:
errorResponseHandler
- theAuthenticationFailureHandler
used for handling anOAuth2AuthenticationException
- Returns:
- the
OAuth2TokenRevocationEndpointConfigurer
for further configuration
-
postProcess
protected final <T> T postProcess(T object) -
getObjectPostProcessor
protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object> getObjectPostProcessor()
-