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