public abstract class AuthenticationProtocolHandler extends java.lang.Object implements ProtocolHandler
| Modifier and Type | Class and Description |
|---|---|
private class |
AuthenticationProtocolHandler.AuthenticationListener |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.regex.Pattern |
BASE64_PATTERN |
private HttpClient |
client |
static int |
DEFAULT_MAX_CONTENT_LENGTH |
static Logger |
LOG |
private int |
maxContentLength |
private static java.util.regex.Pattern |
MULTIPLE_CHALLENGE_PATTERN |
private ResponseNotifier |
notifier |
private static java.util.regex.Pattern |
PARAM_PATTERN |
private static java.util.regex.Pattern |
TYPE_PATTERN |
| Modifier | Constructor and Description |
|---|---|
protected |
AuthenticationProtocolHandler(HttpClient client,
int maxContentLength) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract HttpHeader |
getAuthenticateHeader() |
protected abstract java.lang.String |
getAuthenticationAttribute() |
protected abstract java.net.URI |
getAuthenticationURI(Request request) |
protected abstract HttpHeader |
getAuthorizationHeader() |
protected java.util.List<Authentication.HeaderInfo> |
getHeaderInfo(java.lang.String value) |
protected HttpClient |
getHttpClient() |
Response.Listener |
getResponseListener() |
protected Authentication.HeaderInfo |
newHeaderInfo(java.lang.String value) |
protected java.util.Map<java.lang.String,java.lang.String> |
parseParameters(java.lang.String wwwAuthenticate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, getNamepublic static final int DEFAULT_MAX_CONTENT_LENGTH
public static final Logger LOG
private static final java.util.regex.Pattern PARAM_PATTERN
private static final java.util.regex.Pattern TYPE_PATTERN
private static final java.util.regex.Pattern MULTIPLE_CHALLENGE_PATTERN
private static final java.util.regex.Pattern BASE64_PATTERN
private final HttpClient client
private final int maxContentLength
private final ResponseNotifier notifier
protected AuthenticationProtocolHandler(HttpClient client, int maxContentLength)
protected HttpClient getHttpClient()
protected abstract HttpHeader getAuthenticateHeader()
protected abstract HttpHeader getAuthorizationHeader()
protected abstract java.net.URI getAuthenticationURI(Request request)
protected abstract java.lang.String getAuthenticationAttribute()
public Response.Listener getResponseListener()
getResponseListener in interface ProtocolHandlerprotected java.util.List<Authentication.HeaderInfo> getHeaderInfo(java.lang.String value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected Authentication.HeaderInfo newHeaderInfo(java.lang.String value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected java.util.Map<java.lang.String,java.lang.String> parseParameters(java.lang.String wwwAuthenticate)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException