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.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private boolean | complete
Whether the digest authentication process is complete |
| private static final char[] | HEXADECIMAL
Hexa values used when creating 32 character long digest in HTTP DigestScheme in case of authentication. |
| private String | |
| private long | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DigestScheme(final ChallengeState challengeState)
Deprecated
(4.3) do not use.
Creates an instance of DigestScheme with the given challenge
state.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Header | authenticate(final Credentials
The set of credentials to be used for athentication credentials, final HttpRequest The request being authenticated request)Implements org.
Deprecated
(4.2) Use
Produces an authorization string for the given set of org.
Credentials.
|
| public Header | Returns: a digest authorization stringA set of credentials to be used for athentication credentials, final HttpRequest The request being authenticated request, final HttpContext HTTP context context)Overrides org. Implements org. Credentials, method name and URI.
|
| public static String | Returns: The cnonce value as String.Creates a random cnonce value based on the current time. |
| private Header | Returns: The digest-response as String.User credentials credentials, final HttpRequest request)Creates digest-response header as defined in RFC2617. |
| private static MessageDigest | |
| pack-priv static String | Returns: encoded MD5, ornull if encoding failedarray containing the digest binaryData)Encodes the 128 bit (16 bytes) MD5 digest into a 32 characters long
|
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| public String | Returns: digestImplements org. |
| public boolean | Returns: true if Digest authorization has been processed,
false otherwise.Implements org. |
| public boolean | Returns: false.Implements org. false.
|
| public void | |
| public void | processChallenge(final Header
the challenge header header)Overrides org. Implements org. |
| public String | toString()
Overrides org. |
| a1 | back to summary |
|---|---|
| private String a1 | |
| a2 | back to summary |
|---|---|
| private String a2 | |
| cnonce | back to summary |
|---|---|
| private String cnonce | |
| complete | back to summary |
|---|---|
| private boolean complete Whether the digest authentication process is complete | |
| HEXADECIMAL | back to summary |
|---|---|
| private static final char[] HEXADECIMAL Hexa values used when creating 32 character long digest in HTTP DigestScheme in case of authentication.
| |
| lastNonce | back to summary |
|---|---|
| private String lastNonce | |
| nounceCount | back to summary |
|---|---|
| private long nounceCount | |
| QOP_AUTH | back to summary |
|---|---|
| private static final int QOP_AUTH | |
| QOP_AUTH_INT | back to summary |
|---|---|
| private static final int QOP_AUTH_INT | |
| QOP_MISSING | back to summary |
|---|---|
| private static final int QOP_MISSING | |
| QOP_UNKNOWN | back to summary |
|---|---|
| private static final int QOP_UNKNOWN | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| DigestScheme | back to summary |
|---|---|
public DigestScheme(final Charset credentialsCharset)
| |
| DigestScheme | back to summary |
|---|---|
| public DigestScheme(final ChallengeState challengeState)
Deprecated (4.3) do not use. Creates an instance of
| |
| DigestScheme | back to summary |
|---|---|
| public DigestScheme() | |
| authenticate | back to summary |
|---|---|
| public Header authenticate(final Credentials credentials, final HttpRequest request) throws AuthenticationException Implements org. Doc from org. Deprecated Produces an authorization string for the given set of
| |
| authenticate | back to summary |
|---|---|
| public Header authenticate(final Credentials credentials, final HttpRequest request, final HttpContext context) throws AuthenticationException Overrides org. Implements org. Produces a digest authorization string for the given set of
| |
| createCnonce | back to summary |
|---|---|
| public static String createCnonce() Creates a random cnonce value based on the current time.
| |
| createDigestHeader | back to summary |
|---|---|
| private Header createDigestHeader(final Credentials credentials, final HttpRequest request) throws AuthenticationException Creates digest-response header as defined in RFC2617.
| |
| createMessageDigest | back to summary |
|---|---|
| private static MessageDigest createMessageDigest(final String digAlg) throws UnsupportedDigestAlgorithmException | |
| encode | back to summary |
|---|---|
| pack-priv static String encode(final byte[] binaryData) Encodes the 128 bit (16 bytes) MD5 digest into a 32 characters long
| |
| getA1 | back to summary |
|---|---|
| pack-priv String getA1() | |
| getA2 | back to summary |
|---|---|
| pack-priv String getA2() | |
| getCnonce | back to summary |
|---|---|
| pack-priv String getCnonce() | |
| getSchemeName | back to summary |
|---|---|
| public String getSchemeName() Implements org. Returns textual designation of the digest authentication scheme. | |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Implements org. Tests if the Digest authentication process has been completed.
| |
| isConnectionBased | back to summary |
|---|---|
| public boolean isConnectionBased() Implements org. Returns
| |
| overrideParamter | back to summary |
|---|---|
| public void overrideParamter(final String name, final String value) | |
| processChallenge | back to summary |
|---|---|
| public void processChallenge(final Header header) throws MalformedChallengeException Overrides org. Implements org. Processes the Digest challenge.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |