PHP Class lithium\net\http\Auth

See also: lithium\net\http\Request::to()
See also: lithium\net\http\Response::digest()
See also: lithium\security\auth\adapter\Http
Inheritance: extends lithium\core\StaticObject
Datei anzeigen Open project: unionofrad/lithium Class Usage Examples

Public Properties

Property Type Description
$nc The NC value needed for digest authentication

Public Methods

Method Description
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.

Method Details

decode() public static method

Takes the header string and parses out the params needed for a digest authentication.
public static decode ( string $header ) : array
$header string
return array

encode() public static method

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
return array

header() public static method

Returns the proper header string. Accepts the data from the encode method.
public static header ( array $data ) : string
$data array
return string

Property Details

$nc public_oe static_oe property

The NC value needed for digest authentication
public static $nc