PHP Class Horde_Imap_Client_Auth_DigestMD5, horde

Author: Richard Heyes ([email protected])
Author: Michael Slusarz ([email protected])
Mostrar archivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_response string Digest response components.

Public Methods

Method Description
__construct ( string $id, string $pass, string $challenge, string $hostname, string $service ) Generate the Digest-MD5 response.
__get ( $name ) : mixed Return specific digest response directive.
__toString ( ) : string Cooerce to string.

Protected Methods

Method Description
_getCnonce ( ) : string Creates the client nonce for the response
_parseChallenge ( string $challenge ) : array Parses and verifies the digest challenge.

Method Details

__construct() public method

Generate the Digest-MD5 response.
public __construct ( string $id, string $pass, string $challenge, string $hostname, string $service )
$id string Authentication id (username).
$pass string Password.
$challenge string The digest challenge sent by the server.
$hostname string The hostname of the machine connecting to.
$service string The service name (e.g. 'imap', 'pop3').

__get() public method

Return specific digest response directive.
public __get ( $name ) : mixed
return mixed Requested directive, or null if it does not exist.

__toString() public method

Cooerce to string.
public __toString ( ) : string
return string The digest response (not base64 encoded).

_getCnonce() protected method

Creates the client nonce for the response
protected _getCnonce ( ) : string
return string The cnonce value.

_parseChallenge() protected method

Parses and verifies the digest challenge.
protected _parseChallenge ( string $challenge ) : array
$challenge string The digest challenge
return array The parsed challenge as an array with directives as keys.

Property Details

$_response protected_oe property

Digest response components.
protected string $_response
return string