public class SAMLAssertionHandler extends Object implements AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TYPE
SAML type to use when configuring context policy.
|
Constructor and Description |
---|
SAMLAssertionHandler() |
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)
If an error occured during the processing of the request, this method will get called.
|
void |
setSessionFactory(SessionFactory sessionFactory) |
public static final String AUTH_TYPE
public String getAuthenticationType()
AuthenticationHandler
getAuthenticationType
in interface AuthenticationHandler
public HandlerResult getNormalizedToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain, boolean resolve)
AuthenticationHandler
getNormalizedToken
in interface AuthenticationHandler
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.public void setSessionFactory(SessionFactory sessionFactory)
public HandlerResult handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws javax.servlet.ServletException
handleError
in interface AuthenticationHandler
servletRequest
- http servlet requestservletResponse
- http servlet responsechain
- rest of the request chain to be invoked after security handlingjavax.servlet.ServletException
This work is licensed under a Creative Commons Attribution 4.0 International License.