HTTP Digest Authentication handler
Use this class for easy http digest authentication. Instructions:
Located in /sources_custom/Sabre/HTTP/DigestAuth.php (line 28)
Sabre_HTTP_AbstractAuth | --Sabre_HTTP_DigestAuth
Inherited from Sabre_HTTP_AbstractAuth
Sabre_HTTP_AbstractAuth::$httpRequest
Sabre_HTTP_AbstractAuth::$httpResponse
Sabre_HTTP_AbstractAuth::$realm
Initializes the object
This method returns the full digest string.
It should be compatibile with mod_php format and other webservers.
If the header could not be found, null will be returned
Returns the username for the request
Gathers all information from the headers
This method needs to be called prior to anything else.
Parses the different pieces of the digest string into an array.
This method returns false if an incomplete digest was supplied
Returns an HTTP 401 header, forcing login
This should be called when username and password are incorrect, or not supplied at all
Sets the quality of protection value.
Possible values are: Sabre_HTTP_DigestAuth::QOP_AUTH Sabre_HTTP_DigestAuth::QOP_AUTHINT
Multiple values can be specified using logical OR.
QOP_AUTHINT ensures integrity of the request body, but this is not supported by most HTTP clients. QOP_AUTHINT also requires the entire request body to be md5'ed, which can put strains on CPU and memory.
Validates the digest challenge
Validates the user.
The A1 parameter should be md5($username . ':' . $realm . ':' . $password);
Validates authentication through a password. The actual password must be provided here.
It is strongly recommended not store the password in plain-text and use validateA1 instead.
Inherited From Sabre_HTTP_AbstractAuth
Sabre_HTTP_AbstractAuth::__construct()
Sabre_HTTP_AbstractAuth::getRealm()
Sabre_HTTP_AbstractAuth::requireLogin()
Sabre_HTTP_AbstractAuth::setHTTPRequest()
Sabre_HTTP_AbstractAuth::setHTTPResponse()
Sabre_HTTP_AbstractAuth::setRealm()
Documentation generated on Sun, 02 Jan 2011 23:13:08 +0000 by phpDocumentor 1.4.3