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, setNoCachepublic DigestAuthenticationHandler(org.w3c.dom.Node loginConfigNode,
java.util.List constraintNodes,
java.util.Set rolesAllowed,
AuthenticationRealm realm)
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionprotected void requestAuthentication(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws java.io.IOException
requestAuthentication in class BaseAuthenticationHandlerjava.io.IOExceptionprotected boolean validatePossibleAuthenticationResponse(HttpServletRequest request, HttpServletResponse response, java.lang.String pathRequested) throws java.io.IOException
validatePossibleAuthenticationResponse in class BaseAuthenticationHandlerjava.io.IOExceptionpublic java.lang.String md5Encode(java.lang.String input)
throws java.io.UnsupportedEncodingException
input - The string to encodejava.io.UnsupportedEncodingExceptionCopyright © 2013. All Rights Reserved.