예제 #1
0
파일: Http.php 프로젝트: bersace/strass
 /**
  * Constructor
  *
  * @param  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
  *    'algorithm' => <string> See $_supportedAlgos. Default: MD5
  *    'proxy_auth' => <bool> Whether to do authentication as a Proxy,
  *    'basic_process' => <string> Func to process password before comparison
  * @throws Zend_Auth_Adapter_Exception
  * @return void
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     if (isset($config['basic_process']) && is_callable($config['basic_process'])) {
         $this->_basicProcess = $config['basic_process'];
     }
 }