Property | Type | Description | |
---|---|---|---|
$_response | string | Digest response components. |
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. |
Method | Description | |
---|---|---|
_getCnonce ( ) : string | Creates the client nonce for the response | |
_parseChallenge ( string $challenge ) : array | Parses and verifies the digest challenge. |
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'). |
public __toString ( ) : string | ||
return | string | The digest response (not base64 encoded). |
protected _getCnonce ( ) : string | ||
return | string | The cnonce value. |
protected _parseChallenge ( string $challenge ) : array | ||
$challenge | string | The digest challenge |
return | array | The parsed challenge as an array with directives as keys. |