|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.auth.AuthSchemeBaseHC4
org.apache.http.impl.auth.RFC2617SchemeHC4
org.apache.http.impl.auth.DigestSchemeHC4
@NotThreadSafe public class DigestSchemeHC4
Digest authentication scheme as defined in RFC 2617. Both MD5 (default) and MD5-sess are supported. Currently only qop=auth or no qop is supported. qop=auth-int is unsupported. If auth and auth-int are provided, auth is used.
Since the digest username is included as clear text in the generated Authentication header, the charset of the username must be compatible with the HTTP element charset used by the connection.
| Constructor Summary | |
|---|---|
DigestSchemeHC4()
|
|
DigestSchemeHC4(ChallengeState challengeState)
Deprecated. (4.3) do not use. |
|
DigestSchemeHC4(java.nio.charset.Charset credentialsCharset)
|
|
| Method Summary | |
|---|---|
org.apache.http.Header |
authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request)
Deprecated. (4.2) Use ContextAwareAuthScheme.authenticate(
Credentials, HttpRequest, org.apache.http.protocol.HttpContext) |
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()
|
| Methods inherited from class org.apache.http.impl.auth.RFC2617SchemeHC4 |
|---|
getCredentialsCharset, getParameter, getParameters, getRealm, parseChallenge |
| Methods inherited from class org.apache.http.impl.auth.AuthSchemeBaseHC4 |
|---|
getChallengeState, isProxy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DigestSchemeHC4(java.nio.charset.Charset credentialsCharset)
@Deprecated public DigestSchemeHC4(ChallengeState challengeState)
public DigestSchemeHC4()
| Method Detail |
|---|
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 header
org.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.AuthenticationException
public 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 context
org.apache.http.auth.InvalidCredentialsException - if authentication credentials
are not valid or not applicable for this authentication scheme
org.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 AuthSchemeBaseHC4
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||