Class OAuth2TokenIntrospectionEndpointConfigurer
java.lang.Object
org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenIntrospectionEndpointConfigurer
Configurer for the OAuth 2.0 Token Introspection Endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating a type ofOAuth2TokenIntrospectionAuthenticationToken.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>introspectionRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter introspectionRequestConverter) Adds anAuthenticationConverterused when attempting to extract an Introspection Request fromHttpServletRequestto an instance ofOAuth2TokenIntrospectionAuthenticationTokenused for authenticating the request.introspectionRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> introspectionRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.introspectionResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler introspectionResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2TokenIntrospectionAuthenticationToken.protected final <T> TpostProcess(T object)
-
Method Details
-
introspectionRequestConverter
public OAuth2TokenIntrospectionEndpointConfigurer introspectionRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter introspectionRequestConverter) Adds anAuthenticationConverterused when attempting to extract an Introspection Request fromHttpServletRequestto an instance ofOAuth2TokenIntrospectionAuthenticationTokenused for authenticating the request.- Parameters:
introspectionRequestConverter- anAuthenticationConverterused when attempting to extract an Introspection Request fromHttpServletRequest- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurerfor further configuration
-
introspectionRequestConverters
public OAuth2TokenIntrospectionEndpointConfigurer introspectionRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> introspectionRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.- Parameters:
introspectionRequestConvertersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurerfor further configuration - Since:
- 0.4.0
-
authenticationProvider
public OAuth2TokenIntrospectionEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating a type ofOAuth2TokenIntrospectionAuthenticationToken.- Parameters:
authenticationProvider- anAuthenticationProviderused for authenticating a type ofOAuth2TokenIntrospectionAuthenticationToken- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurerfor further configuration
-
authenticationProviders
public OAuth2TokenIntrospectionEndpointConfigurer 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
OAuth2TokenIntrospectionEndpointConfigurerfor further configuration - Since:
- 0.4.0
-
introspectionResponseHandler
public OAuth2TokenIntrospectionEndpointConfigurer introspectionResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler introspectionResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2TokenIntrospectionAuthenticationToken.- Parameters:
introspectionResponseHandler- theAuthenticationSuccessHandlerused for handling anOAuth2TokenIntrospectionAuthenticationToken- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurerfor further configuration
-
errorResponseHandler
public OAuth2TokenIntrospectionEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationExceptionand returning theError Response.- Parameters:
errorResponseHandler- theAuthenticationFailureHandlerused for handling anOAuth2AuthenticationException- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurerfor further configuration
-
postProcess
protected final <T> T postProcess(T object) -
getObjectPostProcessor
protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object> getObjectPostProcessor()
-