Zend Framework
1.12
|
Public Member Functions | |
__construct (array $config) | |
Constructor. | |
setBasicResolver (Zend_Auth_Adapter_Http_Resolver_Interface $resolver) | |
Setter for the _basicResolver property. | |
getBasicResolver () | |
Getter for the _basicResolver property. | |
setDigestResolver (Zend_Auth_Adapter_Http_Resolver_Interface $resolver) | |
Setter for the _digestResolver property. | |
getDigestResolver () | |
Getter for the _digestResolver property. | |
setRequest (Zend_Controller_Request_Http $request) | |
Setter for the Request object. | |
getRequest () | |
Getter for the Request object. | |
setResponse (Zend_Controller_Response_Http $response) | |
Setter for the Response object. | |
getResponse () | |
Getter for the Response object. | |
authenticate () | |
Authenticate. | |
Protected Member Functions | |
_challengeClient () | |
Challenge Client. | |
_basicHeader () | |
Basic Header. | |
_digestHeader () | |
Digest Header. | |
_basicAuth ($header) | |
Basic Authentication. | |
_digestAuth ($header) | |
Digest Authentication. | |
_calcNonce () | |
Calculate Nonce. | |
_calcOpaque () | |
Calculate Opaque. | |
_parseDigestAuth ($header) | |
Parse Digest Authorization header. | |
_secureStringCompare ($a, $b) | |
Securely compare two strings for equality while avoided C level memcmp() optimisations capable of leaking timing information useful to an attacker attempting to iteratively guess the unknown string (e.g. | |
Protected Attributes | |
$_request | |
$_response | |
$_basicResolver | |
$_digestResolver | |
$_supportedSchemes = array('basic', 'digest') | |
$_acceptSchemes | |
$_domains | |
$_realm | |
$_nonceTimeout | |
$_useOpaque | |
$_supportedAlgos = array('MD5') | |
$_algo | |
$_supportedQops = array('auth') | |
$_imaProxy | |
$_ieNoOpaque | |
__construct | ( | array | $config | ) |
Constructor.
array | $config | Configuration settings: 'accept_schemes' => 'basic'|'digest'|'basic digest' 'realm' => <string> 'digest_domains' => <string> Space-delimited list of URIs 'nonce_timeout' => <int> 'use_opaque' => <bool> Whether to send the opaque value in the header 'alogrithm' => <string> See $_supportedAlgos. Default: MD5 'proxy_auth' => <bool> Whether to do authentication as a Proxy |
Zend_Auth_Adapter_Exception |
|
protected |
Basic Authentication.
string | $header | Client's Authorization header |
Zend_Auth_Adapter_Exception |
|
protected |
Basic Header.
Generates a Proxy- or WWW-Authenticate header value in the Basic authentication scheme.
|
protected |
Calculate Nonce.
|
protected |
Calculate Opaque.
The opaque string can be anything; the client must return it exactly as it was sent. It may be useful to store data in this string in some applications. Ideally, a new value for this would be generated each time a WWW-Authenticate header is sent (in order to reduce predictability), but we would have to be able to create the same exact value across at least two separate requests from the same client.
|
protected |
Challenge Client.
Sets a 401 or 407 Unauthorized response code, and creates the appropriate Authenticate header(s) to prompt for credentials.
|
protected |
Digest Authentication.
string | $header | Client's Authorization header |
Zend_Auth_Adapter_Exception |
|
protected |
Digest Header.
Generates a Proxy- or WWW-Authenticate header value in the Digest authentication scheme.
|
protected |
Parse Digest Authorization header.
string | $header | Client's Authorization: HTTP header |
|
protected |
Securely compare two strings for equality while avoided C level memcmp() optimisations capable of leaking timing information useful to an attacker attempting to iteratively guess the unknown string (e.g.
password) being compared against.
string | $a | |
string | $b |
authenticate | ( | ) |
Authenticate.
Zend_Auth_Adapter_Exception |
Implements Zend_Auth_Adapter_Interface.
getBasicResolver | ( | ) |
Getter for the _basicResolver property.
getDigestResolver | ( | ) |
Getter for the _digestResolver property.
getRequest | ( | ) |
Getter for the Request object.
getResponse | ( | ) |
Getter for the Response object.
setBasicResolver | ( | Zend_Auth_Adapter_Http_Resolver_Interface | $resolver | ) |
Setter for the _basicResolver property.
Zend_Auth_Adapter_Http_Resolver_Interface | $resolver |
setDigestResolver | ( | Zend_Auth_Adapter_Http_Resolver_Interface | $resolver | ) |
Setter for the _digestResolver property.
Zend_Auth_Adapter_Http_Resolver_Interface | $resolver |
setRequest | ( | Zend_Controller_Request_Http | $request | ) |
Setter for the Request object.
Zend_Controller_Request_Http | $request |
setResponse | ( | Zend_Controller_Response_Http | $response | ) |
Setter for the Response object.
Zend_Controller_Response_Http | $response |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |