@NotThreadSafe public class DigestSchemeHC4 extends RFC2617SchemeHC4
| Constructor and Description |
|---|
DigestSchemeHC4() |
DigestSchemeHC4(ChallengeState challengeState)
Deprecated.
(4.3) do not use.
|
DigestSchemeHC4(java.nio.charset.Charset credentialsCharset) |
| 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.Header |
authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Produces a digest authorization string for the given set of
Credentials, method name and URI. |
static java.lang.String |
createCnonce()
Creates a random cnonce value based on the current time.
|
java.lang.String |
getSchemeName()
Returns textual designation of the digest authentication scheme.
|
boolean |
isComplete()
Tests if the Digest authentication process has been completed.
|
boolean |
isConnectionBased()
Returns false.
|
void |
overrideParamter(java.lang.String name,
java.lang.String value) |
void |
processChallenge(org.apache.http.Header header)
Processes the Digest challenge.
|
java.lang.String |
toString() |
getCredentialsCharset, getParameter, getParameters, getRealm, parseChallengegetChallengeState, isProxypublic DigestSchemeHC4(java.nio.charset.Charset credentialsCharset)
@Deprecated public DigestSchemeHC4(ChallengeState challengeState)
public DigestSchemeHC4()
public void processChallenge(org.apache.http.Header header)
throws org.apache.http.auth.MalformedChallengeException
processChallenge in interface org.apache.http.auth.AuthSchemeprocessChallenge in class AuthSchemeBaseHC4header - the challenge headerorg.apache.http.auth.MalformedChallengeException - is thrown if the authentication challenge
is malformedpublic boolean isComplete()
public java.lang.String getSchemeName()
digestpublic boolean isConnectionBased()
public void overrideParamter(java.lang.String name,
java.lang.String value)
@Deprecated
public org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request)
throws org.apache.http.auth.AuthenticationException
ContextAwareAuthScheme.authenticate(
Credentials, HttpRequest, org.apache.http.protocol.HttpContext)org.apache.http.auth.AuthenticationExceptionpublic 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
Credentials, method name and URI.authenticate in interface ContextAwareAuthSchemeauthenticate in class AuthSchemeBaseHC4credentials - A set of credentials to be used for athenticationrequest - The request being authenticatedcontext - HTTP contextorg.apache.http.auth.InvalidCredentialsException - if authentication credentials
are not valid or not applicable for this authentication schemeorg.apache.http.auth.AuthenticationException - if authorization string cannot
be generated due to an authentication failurepublic static java.lang.String createCnonce()
public java.lang.String toString()
toString in class AuthSchemeBaseHC4Copyright © 1999-2015 The Apache Software Foundation. All rights reserved.