Auth/Adapter/Digest.php

Show: PublicProtectedPrivateinherited
Table of Contents
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 license@zend.com 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

>VPropertyprotectedstring $_filename
Filename against which authentication queries are performed
Details
Type
string
>VPropertyprotectedstring $_password
Password for the user of the realm
Details
Type
string
>VPropertyprotectedstring $_realm
Digest authentication realm
Details
Type
string
>VPropertyprotectedstring $_username
Digest authentication user
Details
Type
string

Methods

methodpublic__construct(mixed $filename = null, mixed $realm = null, mixed $username = null, mixed $password = null) : void

Sets adapter options

Parameters
NameTypeDescription
$filenamemixed
$realmmixed
$usernamemixed
$passwordmixed
methodprotected_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
NameTypeDescription
$astring
$bstring
Returns
TypeDescription
bool
methodpublicauthenticate() : \Zend_Auth_Result

Defined by Zend_Auth_Adapter_Interface

Returns
TypeDescription
\Zend_Auth_Result
Throws
ExceptionDescription
\Zend_Auth_Adapter_Exception
methodpublicgetFilename() : string | null

Returns the filename option value or null if it has not yet been set

Returns
TypeDescription
string | null
methodpublicgetPassword() : string | null

Returns the password option value or null if it has not yet been set

Returns
TypeDescription
string | null
methodpublicgetRealm() : string | null

Returns the realm option value or null if it has not yet been set

Returns
TypeDescription
string | null
methodpublicgetUsername() : string | null

Returns the username option value or null if it has not yet been set

Returns
TypeDescription
string | null
methodpublicsetFilename(mixed $filename) : \Zend_Auth_Adapter_Digest

Sets the filename option value

Parameters
NameTypeDescription
$filenamemixed
Returns
TypeDescription
\Zend_Auth_Adapter_DigestProvides a fluent interface
methodpublicsetPassword(mixed $password) : \Zend_Auth_Adapter_Digest

Sets the password option value

Parameters
NameTypeDescription
$passwordmixed
Returns
TypeDescription
\Zend_Auth_Adapter_DigestProvides a fluent interface
methodpublicsetRealm(mixed $realm) : \Zend_Auth_Adapter_Digest

Sets the realm option value

Parameters
NameTypeDescription
$realmmixed
Returns
TypeDescription
\Zend_Auth_Adapter_DigestProvides a fluent interface
methodpublicsetUsername(mixed $username) : \Zend_Auth_Adapter_Digest

Sets the username option value

Parameters
NameTypeDescription
$usernamemixed
Returns
TypeDescription
\Zend_Auth_Adapter_DigestProvides a fluent interface
Documentation was generated by phpDocumentor 2.2.0 .