PHP Класс lithium\net\http\Auth

См. также: lithium\net\http\Request::to()
См. также: lithium\net\http\Response::digest()
См. также: lithium\security\auth\adapter\Http
Наследование: extends lithium\core\StaticObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$nc The NC value needed for digest authentication

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

Метод Описание
decode ( string $header ) : array Takes the header string and parses out the params needed for a digest authentication.
encode ( string $username, string $password, array $data = [] ) : array Encodes the data with username and password to create the proper response. Returns an array containing the username and encoded response.
header ( array $data ) : string Returns the proper header string. Accepts the data from the encode method.

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

decode() публичный статический Метод

Takes the header string and parses out the params needed for a digest authentication.
public static decode ( string $header ) : array
$header string
Результат array

encode() публичный статический Метод

Encodes the data with username and password to create the proper response. Returns an array containing the username and encoded response.
public static encode ( string $username, string $password, array $data = [] ) : array
$username string Username to authenticate with
$password string Password to authenticate with
$data array Params needed to hash the response
Результат array

header() публичный статический Метод

Returns the proper header string. Accepts the data from the encode method.
public static header ( array $data ) : string
$data array
Результат string

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

$nc публичное статическое свойство

The NC value needed for digest authentication
public static $nc