public class FormAuthenticationHandler extends BaseAuthenticationHandler
AUTH_RESOURCES, constraints, realm, realmName| Constructor and Description |
|---|
FormAuthenticationHandler(Node loginConfigNode,
List constraintNodes,
Set rolesAllowed,
AuthenticationRealm realm)
Constructor for the FORM authenticator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
processAuthentication(ServletRequest request,
ServletResponse response,
String pathRequested)
Evaluates any authentication constraints, intercepting if auth is
required.
|
protected void |
requestAuthentication(HttpServletRequest request,
HttpServletResponse response,
String pathRequested)
Call this once we know that we need to authenticate
|
protected boolean |
validatePossibleAuthenticationResponse(HttpServletRequest request,
HttpServletResponse response,
String pathRequested)
Check the response - is it a response to the login page ?
|
doRoleCheck, setNoCachepublic FormAuthenticationHandler(Node loginConfigNode, List constraintNodes, 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, String pathRequested) throws IOException, ServletException
processAuthentication in interface AuthenticationHandlerprocessAuthentication in class BaseAuthenticationHandlerIOExceptionServletExceptionprotected void requestAuthentication(HttpServletRequest request, HttpServletResponse response, String pathRequested) throws ServletException, IOException
requestAuthentication in class BaseAuthenticationHandlerServletExceptionIOExceptionprotected boolean validatePossibleAuthenticationResponse(HttpServletRequest request, HttpServletResponse response, String pathRequested) throws ServletException, IOException
validatePossibleAuthenticationResponse in class BaseAuthenticationHandlerServletExceptionIOExceptionCopyright © 2014. All rights reserved.