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 anAuthenticationProviderused for authenticating a type ofOAuth2TokenRevocationAuthenticationToken.authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's allowing the ability to add, remove, or customize a specificAuthenticationProvider.errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationExceptionand returning theError Response.protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object>protected final <T> TpostProcess(T object) revocationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter revocationRequestConverter) Adds anAuthenticationConverterused when attempting to extract a Revoke Token Request fromHttpServletRequestto an instance ofOAuth2TokenRevocationAuthenticationTokenused for authenticating the request.revocationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> revocationRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.revocationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler revocationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2TokenRevocationAuthenticationToken.
-
Method Details
-
revocationRequestConverter
public OAuth2TokenRevocationEndpointConfigurer revocationRequestConverter(org.springframework.security.web.authentication.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<org.springframework.security.web.authentication.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 - Since:
- 0.4.0
-
authenticationProvider
public OAuth2TokenRevocationEndpointConfigurer authenticationProvider(org.springframework.security.authentication.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<org.springframework.security.authentication.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 - Since:
- 0.4.0
-
revocationResponseHandler
public OAuth2TokenRevocationEndpointConfigurer revocationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler revocationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2TokenRevocationAuthenticationToken.- Parameters:
revocationResponseHandler- theAuthenticationSuccessHandlerused for handling anOAuth2TokenRevocationAuthenticationToken- Returns:
- the
OAuth2TokenRevocationEndpointConfigurerfor further configuration
-
errorResponseHandler
public OAuth2TokenRevocationEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.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
protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object> getObjectPostProcessor()
-