Auth/Adapter/Http.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
Zend_Auth_Adapter_Http  
Version
$Id$  

\Zend_Auth_Adapter_Http

Package: Zend_Auth\Zend_Auth_Adapter_Http
HTTP Authentication Adapter
Implements a pretty good chunk of RFC 2617.
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Todo
Support auth-int  
Todo
Track nonces, nonce-count, opaque for replay protection and stale support  
Todo
Support Authentication-Info header  

Properties

Methods

methodpublic__construct(array $config) : void

Constructor

Parameters
NameTypeDescription
$configarray

Configuration settings: 'accept_schemes' => 'basic'|'digest'|'basic digest' 'realm' => 'digest_domains' => Space-delimited list of URIs 'nonce_timeout' => 'use_opaque' => Whether to send the opaque value in the header 'alogrithm' => See $_supportedAlgos. Default: MD5 'proxy_auth' => Whether to do authentication as a Proxy

Throws
ExceptionDescription
\Zend_Auth_Adapter_Exception
methodpublicauthenticate() : \Zend_Auth_Result

Authenticate

Returns
TypeDescription
\Zend_Auth_Result
Throws
ExceptionDescription
\Zend_Auth_Adapter_Exception
methodpublicgetBasicResolver() : \Zend_Auth_Adapter_Http_Resolver_Interface

Getter for the _basicResolver property

methodpublicgetDigestResolver() : \Zend_Auth_Adapter_Http_Resolver_Interface

Getter for the _digestResolver property

methodpublicgetRequest() : \Zend_Controller_Request_Http

Getter for the Request object

Returns
TypeDescription
\Zend_Controller_Request_Http
methodpublicgetResponse() : \Zend_Controller_Response_Http

Getter for the Response object

Returns
TypeDescription
\Zend_Controller_Response_Http
methodpublicsetBasicResolver(\Zend_Auth_Adapter_Http_Resolver_Interface $resolver) : \Zend_Auth_Adapter_Http

Setter for the _basicResolver property

Parameters
NameTypeDescription
$resolver\Zend_Auth_Adapter_Http_Resolver_Interface
Returns
TypeDescription
\Zend_Auth_Adapter_HttpProvides a fluent interface
methodpublicsetDigestResolver(\Zend_Auth_Adapter_Http_Resolver_Interface $resolver) : \Zend_Auth_Adapter_Http

Setter for the _digestResolver property

Parameters
NameTypeDescription
$resolver\Zend_Auth_Adapter_Http_Resolver_Interface
Returns
TypeDescription
\Zend_Auth_Adapter_HttpProvides a fluent interface
methodpublicsetRequest(\Zend_Controller_Request_Http $request) : \Zend_Auth_Adapter_Http

Setter for the Request object

Parameters
NameTypeDescription
$request\Zend_Controller_Request_Http
Returns
TypeDescription
\Zend_Auth_Adapter_HttpProvides a fluent interface
methodpublicsetResponse(\Zend_Controller_Response_Http $response) : \Zend_Auth_Adapter_Http

Setter for the Response object

Parameters
NameTypeDescription
$response\Zend_Controller_Response_Http
Returns
TypeDescription
\Zend_Auth_Adapter_HttpProvides a fluent interface
Documentation was generated by phpDocumentor 2.2.0 .