public class BasicAuthenticationHandler extends BaseAuthenticationHandler
AUTH_RESOURCES, constraints, realm, realmName
Constructor and Description |
---|
BasicAuthenticationHandler(org.w3c.dom.Node loginConfigNode,
java.util.List constraintNodes,
java.util.Set rolesAllowed,
AuthenticationRealm realm) |
Modifier and Type | Method and Description |
---|---|
static int |
decodeBase64(char[] input,
byte[] output,
int inOffset,
int inLength,
int outOffset)
Decodes a byte array from base64
|
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 BasicAuthenticationHandler(org.w3c.dom.Node loginConfigNode, java.util.List constraintNodes, java.util.Set rolesAllowed, AuthenticationRealm realm)
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 static int decodeBase64(char[] input, byte[] output, int inOffset, int inLength, int outOffset)
Copyright © 2012. All Rights Reserved.