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 anAuthenticationProvider
used for authenticating a type ofOAuth2TokenIntrospectionAuthenticationToken
.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>
introspectionRequestConverter
(org.springframework.security.web.authentication.AuthenticationConverter introspectionRequestConverter) Adds anAuthenticationConverter
used when attempting to extract an Introspection Request fromHttpServletRequest
to an instance ofOAuth2TokenIntrospectionAuthenticationToken
used for authenticating the request.introspectionRequestConverters
(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> introspectionRequestConvertersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's allowing the ability to add, remove, or customize a specificAuthenticationConverter
.introspectionResponseHandler
(org.springframework.security.web.authentication.AuthenticationSuccessHandler introspectionResponseHandler) Sets theAuthenticationSuccessHandler
used for handling anOAuth2TokenIntrospectionAuthenticationToken
.protected final <T> T
postProcess
(T object)
-
Method Details
-
introspectionRequestConverter
public OAuth2TokenIntrospectionEndpointConfigurer introspectionRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter introspectionRequestConverter) Adds anAuthenticationConverter
used when attempting to extract an Introspection Request fromHttpServletRequest
to an instance ofOAuth2TokenIntrospectionAuthenticationToken
used for authenticating the request.- Parameters:
introspectionRequestConverter
- anAuthenticationConverter
used when attempting to extract an Introspection Request fromHttpServletRequest
- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurer
for further configuration
-
introspectionRequestConverters
public OAuth2TokenIntrospectionEndpointConfigurer introspectionRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> introspectionRequestConvertersConsumer) Sets theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's allowing the ability to add, remove, or customize a specificAuthenticationConverter
.- Parameters:
introspectionRequestConvertersConsumer
- theConsumer
providing access to theList
of default and (optionally) addedAuthenticationConverter
's- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
authenticationProvider
public OAuth2TokenIntrospectionEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProvider
used for authenticating a type ofOAuth2TokenIntrospectionAuthenticationToken
.- Parameters:
authenticationProvider
- anAuthenticationProvider
used for authenticating a type ofOAuth2TokenIntrospectionAuthenticationToken
- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurer
for further configuration
-
authenticationProviders
public OAuth2TokenIntrospectionEndpointConfigurer 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
OAuth2TokenIntrospectionEndpointConfigurer
for further configuration - Since:
- 0.4.0
-
introspectionResponseHandler
public OAuth2TokenIntrospectionEndpointConfigurer introspectionResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler introspectionResponseHandler) Sets theAuthenticationSuccessHandler
used for handling anOAuth2TokenIntrospectionAuthenticationToken
.- Parameters:
introspectionResponseHandler
- theAuthenticationSuccessHandler
used for handling anOAuth2TokenIntrospectionAuthenticationToken
- Returns:
- the
OAuth2TokenIntrospectionEndpointConfigurer
for further configuration
-
errorResponseHandler
public OAuth2TokenIntrospectionEndpointConfigurer 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
OAuth2TokenIntrospectionEndpointConfigurer
for further configuration
-
postProcess
protected final <T> T postProcess(T object) -
getObjectPostProcessor
protected final org.springframework.security.config.annotation.ObjectPostProcessor<Object> getObjectPostProcessor()
-