public class DigestAuthenticationHandler extends BaseAuthenticationHandler
AUTH_RESOURCES, constraints, realm, realmName
Constructor and Description |
---|
DigestAuthenticationHandler(org.w3c.dom.Node loginConfigNode,
java.util.List constraintNodes,
java.util.Set rolesAllowed,
AuthenticationRealm realm) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
md5Encode(java.lang.String input)
Returns a hex encoded MD5 digested version of the input string
|
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)
Handling the (possible) response
|
doRoleCheck, processAuthentication, setNoCache
public DigestAuthenticationHandler(org.w3c.dom.Node loginConfigNode, java.util.List constraintNodes, java.util.Set rolesAllowed, AuthenticationRealm realm) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
protected void requestAuthentication(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws java.io.IOException
requestAuthentication
in class BaseAuthenticationHandler
java.io.IOException
protected boolean validatePossibleAuthenticationResponse(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws java.io.IOException
validatePossibleAuthenticationResponse
in class BaseAuthenticationHandler
java.io.IOException
public java.lang.String md5Encode(java.lang.String input) throws java.io.UnsupportedEncodingException
input
- The string to encodejava.io.UnsupportedEncodingException
Copyright © 2012. All Rights Reserved.