PHP Класс Horde_Imap_Client_Auth_DigestMD5, horde

Автор: Richard Heyes ([email protected])
Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_response string Digest response components.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
_getCnonce ( ) : string Creates the client nonce for the response
_parseChallenge ( string $challenge ) : array Parses and verifies the digest challenge.

Описание методов

__construct() публичный Метод

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() публичный Метод

Return specific digest response directive.
public __get ( $name ) : mixed
Результат mixed Requested directive, or null if it does not exist.

__toString() публичный Метод

Cooerce to string.
public __toString ( ) : string
Результат string The digest response (not base64 encoded).

_getCnonce() защищенный Метод

Creates the client nonce for the response
protected _getCnonce ( ) : string
Результат string The cnonce value.

_parseChallenge() защищенный Метод

Parses and verifies the digest challenge.
protected _parseChallenge ( string $challenge ) : array
$challenge string The digest challenge
Результат array The parsed challenge as an array with directives as keys.

Описание свойств

$_response защищенное свойство

Digest response components.
protected string $_response
Результат string