public class FormAuthenticationHandler extends BaseAuthenticationHandler
AUTH_RESOURCES, constraints, realm, realmName| Constructor and Description |
|---|
FormAuthenticationHandler(org.w3c.dom.Node loginConfigNode,
java.util.List constraintNodes,
java.util.Set rolesAllowed,
AuthenticationRealm realm)
Constructor for the FORM authenticator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
processAuthentication(ServletRequest request,
ServletResponse response,
java.lang.String pathRequested)
Evaluates any authentication constraints, intercepting if auth is
required.
|
protected void |
requestAuthentication(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathRequested)
Call this once we know that we need to authenticate
|
protected boolean |
validatePossibleAuthenticationResponse(HttpServletRequest request,
HttpServletResponse response,
java.lang.String pathRequested)
Check the response - is it a response to the login page ?
|
doRoleCheck, setNoCachepublic FormAuthenticationHandler(org.w3c.dom.Node loginConfigNode,
java.util.List constraintNodes,
java.util.Set rolesAllowed,
AuthenticationRealm realm)
realm - The realm against which we are authenticatingconstraints - The array of security constraints that might applyresources - The list of resource strings for messagesrealmName - The name of the realm this handler claimspublic boolean processAuthentication(ServletRequest request, ServletResponse response, java.lang.String pathRequested) throws java.io.IOException, ServletException
processAuthentication in interface AuthenticationHandlerprocessAuthentication in class BaseAuthenticationHandlerjava.io.IOExceptionServletExceptionprotected void requestAuthentication(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws ServletException, java.io.IOException
requestAuthentication in class BaseAuthenticationHandlerServletExceptionjava.io.IOExceptionprotected boolean validatePossibleAuthenticationResponse(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws ServletException, java.io.IOException
validatePossibleAuthenticationResponse in class BaseAuthenticationHandlerServletExceptionjava.io.IOExceptionCopyright © 2013. All Rights Reserved.