Class | HTTPAuth::Digest::Credentials |
In: |
lib/httpauth/digest.rb
|
Parent: | AbstractHeader |
The Credentials class handlers the Authorize header. The Authorize header is sent by a client who wants to let the server know he has the credentials needed to access a resource.
See the Digest module for examples
reason | [R] | Holds an explanation why validate returned false. |
Parses the information from an Authorize header and creates a new Credentials instance with the information. The options hash allows you to specify additional information.
See initialize for valid options.
Create a new instance.
Updates @h from options, generally called after an instance was created with from_challenge.
Validates the credential information stored in the Credentials instance. Returns true or false. You can read the ue
Convenience method, basically an alias for validate(options.merge(:digest => digest))
Convenience method, basically an alias for validate(options.merge(:password => password))