Class: HTTPClient::DigestAuth

Class | HTTPClient::DigestAuth
In: | lib/httpclient/auth.rb
Parent: | Object

Authentication filter for handling DigestAuth negotiation. Used in WWWAuth.

### Methods

challenge get new reset_challenge set

### Attributes

scheme | [R] | Authentication scheme.

### Public Class methods

new()

Creates new DigestAuth filter.

### Public Instance methods

challenge(uri, param_str)

Challenge handler: remember URL and challenge token for response.

get(req)

Response handler: returns credential. It sends cred only when a given uri is;

- child page of challengeable(got *Authenticate before) uri and,
- child page of defined credential

reset_challenge()

Resets challenge state. Do not send ’*Authorization’ header until the server sends ’*Authentication’ again.

set(uri, user, passwd)

Set authentication credential. uri == nil is ignored.

[Validate]