public interface AuthenticationHandler
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationType()
Authentication type String used to match this handler with the auth types configured for a
specific context.
|
HandlerResult |
getNormalizedToken(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain,
boolean resolve)
Determine if all the required information exists in the request to generate a token and move on
to perform authentication and/or authorization for the requested context.
|
HandlerResult |
handleError(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
Called when downstream authentication fails.
|
String getAuthenticationType()
HandlerResult getNormalizedToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain, boolean resolve) throws javax.servlet.ServletException
request
- http request to obtain attributes from and to pass into any local filter chains
requiredresponse
- http response to return http responses or redirectschain
- original filter chain (should not be called from your handler)resolve
- flag with true implying that credentials should be obtained, false implying
return if no credentials are found.javax.servlet.ServletException
HandlerResult handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws javax.servlet.ServletException
servletRequest
- htt http response to return http responses or redirectsjavax.servlet.ServletException
This work is licensed under a Creative Commons Attribution 4.0 International License.