Auth/Adapter/Digest.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Auth
- Subpackage
- Adapter
- Version
- $Id$
\Zend_Auth_Adapter_Digest
Package: Zend_Auth\Adapter
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__construct(mixed $filename = null, mixed $realm = null, mixed $username = null, mixed $password = null) : void
Sets adapter options
Parameters
Name | Type | Description |
---|---|---|
$filename | mixed | |
$realm | mixed | |
$username | mixed | |
$password | mixed |
_secureStringCompare(string $a, string $b) : bool
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.
Parameters
Returns
Name | Type | Description |
---|---|---|
$a | string | |
$b | string |
Type | Description |
---|---|
bool |
authenticate() : \Zend_Auth_Result
Defined by Zend_Auth_Adapter_Interface
Returns
Throws
Type | Description |
---|---|
\Zend_Auth_Result |
Exception | Description |
---|---|
\Zend_Auth_Adapter_Exception |
getFilename() : string | null
Returns the filename option value or null if it has not yet been set
Returns
Type | Description |
---|---|
string | null |
getPassword() : string | null
Returns the password option value or null if it has not yet been set
Returns
Type | Description |
---|---|
string | null |
getRealm() : string | null
Returns the realm option value or null if it has not yet been set
Returns
Type | Description |
---|---|
string | null |
getUsername() : string | null
Returns the username option value or null if it has not yet been set
Returns
Type | Description |
---|---|
string | null |
setFilename(mixed $filename) : \Zend_Auth_Adapter_Digest
Sets the filename option value
Parameters
Returns
Name | Type | Description |
---|---|---|
$filename | mixed |
Type | Description |
---|---|
\Zend_Auth_Adapter_Digest | Provides a fluent interface |
setPassword(mixed $password) : \Zend_Auth_Adapter_Digest
Sets the password option value
Parameters
Returns
Name | Type | Description |
---|---|---|
$password | mixed |
Type | Description |
---|---|
\Zend_Auth_Adapter_Digest | Provides a fluent interface |
setRealm(mixed $realm) : \Zend_Auth_Adapter_Digest
Sets the realm option value
Parameters
Returns
Name | Type | Description |
---|---|---|
$realm | mixed |
Type | Description |
---|---|
\Zend_Auth_Adapter_Digest | Provides a fluent interface |
setUsername(mixed $username) : \Zend_Auth_Adapter_Digest
Sets the username option value
Parameters
Returns
Name | Type | Description |
---|---|---|
$username | mixed |
Type | Description |
---|---|
\Zend_Auth_Adapter_Digest | Provides a fluent interface |