public final class OAuth2TokenRevocationEndpointFilter
extends org.springframework.web.filter.OncePerRequestFilter
Filter for the OAuth 2.0 Token Revocation endpoint.OAuth2TokenRevocationAuthenticationProvider,
Section 2 Token Revocation,
Section 2.1 Revocation Request| Constructor and Description |
|---|
OAuth2TokenRevocationEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager)
Constructs an
OAuth2TokenRevocationEndpointFilter using the provided parameters. |
OAuth2TokenRevocationEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager,
java.lang.String tokenRevocationEndpointUri)
Constructs an
OAuth2TokenRevocationEndpointFilter 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 a Revoke Token Request from HttpServletRequest
to an instance of OAuth2TokenRevocationAuthenticationToken used for authenticating the client. |
void |
setAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler)
Sets the
AuthenticationFailureHandler used for handling an OAuth2AuthenticationException
and returning the Error Response. |
void |
setAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler)
Sets the
AuthenticationSuccessHandler used for handling an OAuth2TokenRevocationAuthenticationToken. |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchpublic OAuth2TokenRevocationEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager)
OAuth2TokenRevocationEndpointFilter using the provided parameters.authenticationManager - the authentication managerpublic OAuth2TokenRevocationEndpointFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager,
java.lang.String tokenRevocationEndpointUri)
OAuth2TokenRevocationEndpointFilter using the provided parameters.authenticationManager - the authentication managertokenRevocationEndpointUri - the endpoint URI for token revocation 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 a Revoke Token Request from HttpServletRequest
to an instance of OAuth2TokenRevocationAuthenticationToken used for authenticating the client.authenticationConverter - the AuthenticationConverter used when attempting to extract client credentials from HttpServletRequestpublic void setAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authenticationSuccessHandler)
AuthenticationSuccessHandler used for handling an OAuth2TokenRevocationAuthenticationToken.authenticationSuccessHandler - the AuthenticationSuccessHandler used for handling an OAuth2TokenRevocationAuthenticationTokenpublic void setAuthenticationFailureHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler authenticationFailureHandler)
AuthenticationFailureHandler used for handling an OAuth2AuthenticationException
and returning the Error Response.authenticationFailureHandler - the AuthenticationFailureHandler used for handling an OAuth2AuthenticationException