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, setNoCache
public 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 AuthenticationHandler
processAuthentication
in class BaseAuthenticationHandler
java.io.IOException
ServletException
protected void requestAuthentication(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws ServletException, java.io.IOException
requestAuthentication
in class BaseAuthenticationHandler
ServletException
java.io.IOException
protected boolean validatePossibleAuthenticationResponse(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws ServletException, java.io.IOException
validatePossibleAuthenticationResponse
in class BaseAuthenticationHandler
ServletException
java.io.IOException
Copyright © 2013. All Rights Reserved.