public final class OAuth2TokenIntrospectionEndpointFilter
extends org.springframework.web.filter.OncePerRequestFilter
Filter for the OAuth 2.0 Token Introspection endpoint.| Constructor and Description |
|---|
OAuth2TokenIntrospectionEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager)
Constructs an
OAuth2TokenIntrospectionEndpointFilter using the provided parameters. |
OAuth2TokenIntrospectionEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager,
java.lang.String tokenIntrospectionEndpointUri)
Constructs an
OAuth2TokenIntrospectionEndpointFilter using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
void |
setAuthenticationConverter(org.springframework.security.web.authentication.AuthenticationConverter authenticationConverter)
Sets the
AuthenticationConverter used when attempting to extract an Introspection Request from HttpServletRequest
to an instance of OAuth2TokenIntrospectionAuthenticationToken used for authenticating the request. |
void |
setAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler)
Sets the
AuthenticationFailureHandler used for handling an OAuth2AuthenticationException
and returning the Error Resonse. |
void |
setAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler)
Sets the
AuthenticationSuccessHandler used for handling an OAuth2TokenIntrospectionAuthenticationToken. |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchpublic OAuth2TokenIntrospectionEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager)
OAuth2TokenIntrospectionEndpointFilter using the provided parameters.authenticationManager - the authentication managerpublic OAuth2TokenIntrospectionEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager,
java.lang.String tokenIntrospectionEndpointUri)
OAuth2TokenIntrospectionEndpointFilter using the provided parameters.authenticationManager - the authentication managertokenIntrospectionEndpointUri - the endpoint URI for token introspection requestsprotected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
java.io.IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void setAuthenticationConverter(org.springframework.security.web.authentication.AuthenticationConverter authenticationConverter)
AuthenticationConverter used when attempting to extract an Introspection Request from HttpServletRequest
to an instance of OAuth2TokenIntrospectionAuthenticationToken used for authenticating the request.authenticationConverter - the AuthenticationConverter used when attempting to extract an Introspection Request from HttpServletRequestpublic void setAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler)
AuthenticationSuccessHandler used for handling an OAuth2TokenIntrospectionAuthenticationToken.authenticationSuccessHandler - the AuthenticationSuccessHandler used for handling an OAuth2TokenIntrospectionAuthenticationTokenpublic void setAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler)
AuthenticationFailureHandler used for handling an OAuth2AuthenticationException
and returning the Error Resonse.authenticationFailureHandler - the AuthenticationFailureHandler used for handling an OAuth2AuthenticationException