java.lang.Object | |||
↳ | org.apache.http.impl.auth.AuthSchemeBase | ||
↳ | org.apache.http.impl.auth.RFC2617Scheme | ||
↳ | org.apache.http.impl.auth.DigestScheme |
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.
Credential charset is configured via the
credential charset
parameter.
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
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for the digest authetication scheme.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Produces a digest authorization string for the given set of
Credentials , method name and URI. | |||||||||||
Creates a random cnonce value based on the current time.
| |||||||||||
Returns textual designation of the digest authentication scheme.
| |||||||||||
Tests if the Digest authentication process has been completed.
| |||||||||||
Returns false.
| |||||||||||
Processes the Digest challenge.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.impl.auth.RFC2617Scheme
| |||||||||||
From class
org.apache.http.impl.auth.AuthSchemeBase
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.auth.AuthScheme
|
Produces a digest authorization string for the given set of
Credentials
, method name and URI.
credentials | A set of credentials to be used for athentication |
---|---|
request | The request being authenticated |
InvalidCredentialsException | if authentication credentials are not valid or not applicable for this authentication scheme |
---|---|
AuthenticationException | if authorization string cannot be generated due to an authentication failure |
Creates a random cnonce value based on the current time.
UnsupportedDigestAlgorithmException | if MD5 algorithm is not supported. |
---|
Returns textual designation of the digest authentication scheme.
digest
Tests if the Digest authentication process has been completed.
Returns false. Digest authentication scheme is request based.
Processes the Digest challenge.
header | the challenge header |
---|
MalformedChallengeException | is thrown if the authentication challenge is malformed |
---|