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