public class GuestHandler extends Object implements AuthenticationHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_TYPE
Guest type to use when configuring context policy.
|
static String |
INVALID_MESSAGE |
| Constructor and Description |
|---|
GuestHandler() |
| 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)
This method takes a guest request and attaches a username token to the HTTP request to allow
access.
|
PKIAuthenticationTokenFactory |
getTokenFactory() |
HandlerResult |
handleError(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
Called when downstream authentication fails.
|
void |
setTokenFactory(PKIAuthenticationTokenFactory tokenFactory) |
public static final String AUTH_TYPE
public static final String INVALID_MESSAGE
public String getAuthenticationType()
AuthenticationHandlergetAuthenticationType in interface AuthenticationHandlerpublic HandlerResult getNormalizedToken(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain, boolean resolve)
getNormalizedToken in interface AuthenticationHandlerrequest - 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 HandlerResult handleError(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws javax.servlet.ServletException
AuthenticationHandlerhandleError in interface AuthenticationHandlerservletRequest - htt http response to return http responses or redirectsjavax.servlet.ServletExceptionpublic PKIAuthenticationTokenFactory getTokenFactory()
public void setTokenFactory(PKIAuthenticationTokenFactory tokenFactory)
This work is licensed under a Creative Commons Attribution 4.0 International License.