@NotThreadSafe public abstract class AuthSchemeBaseHC4 extends java.lang.Object implements ContextAwareAuthScheme
| Constructor and Description |
|---|
AuthSchemeBaseHC4() |
AuthSchemeBaseHC4(ChallengeState challengeState)
Deprecated.
(4.3) do not use.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.Header |
authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Produces an authorization string for the given set of
Credentials. |
ChallengeState |
getChallengeState()
Returns
ChallengeState value or null if unchallenged. |
boolean |
isProxy()
Returns
true if authenticating against a proxy, false
otherwise. |
protected abstract void |
parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex) |
void |
processChallenge(org.apache.http.Header header)
Processes the given challenge token.
|
java.lang.String |
toString() |
@Deprecated public AuthSchemeBaseHC4(ChallengeState challengeState)
public AuthSchemeBaseHC4()
public void processChallenge(org.apache.http.Header header)
throws org.apache.http.auth.MalformedChallengeException
processChallenge in interface org.apache.http.auth.AuthSchemeheader - the challenge headerorg.apache.http.auth.MalformedChallengeException - is thrown if the authentication challenge
is malformedpublic org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.auth.AuthenticationException
ContextAwareAuthSchemeCredentials.authenticate in interface ContextAwareAuthSchemecredentials - The set of credentials to be used for athenticationrequest - The request being authenticatedcontext - HTTP contextAuthenticationException - if authorization string cannot
be generated due to an authentication failureprotected abstract void parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex)
throws org.apache.http.auth.MalformedChallengeException
org.apache.http.auth.MalformedChallengeExceptionpublic boolean isProxy()
true if authenticating against a proxy, false
otherwise.public ChallengeState getChallengeState()
ChallengeState value or null if unchallenged.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.