| |
|
| java.lang.Object org.apache.commons.httpclient.auth.RFC2617Scheme org.apache.commons.httpclient.auth.DigestScheme
Constructor Summary | |
public | DigestScheme() Default constructor for the digest authetication scheme. | public | DigestScheme(String challenge) Constructor for the digest authetication scheme. |
DigestScheme | public DigestScheme()(Code) | | Default constructor for the digest authetication scheme.
since: 3.0 |
authenticate | public String authenticate(Credentials credentials, HttpMethod method) throws AuthenticationException(Code) | | Produces a digest authorization string for the given set of
Credentials , method name and URI.
Parameters: credentials - A set of credentials to be used for athentication Parameters: method - The method being authenticated throws: InvalidCredentialsException - if authentication credentialsare not valid or not applicable for this authentication scheme throws: AuthenticationException - if authorization string cannot be generated due to an authentication failure a digest authorization string since: 3.0 |
createCnonce | public static String createCnonce()(Code) | | Creates a random cnonce value based on the current time.
The cnonce value as String. throws: HttpClientError - if MD5 algorithm is not supported. |
getID | public String getID()(Code) | | Gets an ID based upon the realm and the nonce value. This ensures that requests
to the same realm with different nonce values will succeed. This differentiation
allows servers to request re-authentication using a fresh nonce value.
|
getSchemeName | public String getSchemeName()(Code) | | Returns textual designation of the digest authentication scheme.
digest |
isComplete | public boolean isComplete()(Code) | | Tests if the Digest authentication process has been completed.
true if Digest authorization has been processed,false otherwise. since: 3.0 |
isConnectionBased | public boolean isConnectionBased()(Code) | | Returns false. Digest authentication scheme is request based.
false. since: 3.0 |
|
|
|