Mail/Protocol/Smtp/Auth/Crammd5.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_Mail  
Subpackage
Protocol  
Version
$Id$  

\Zend_Mail_Protocol_Smtp_Auth_Crammd5

Package: Zend_Mail\Protocol
Performs CRAM-MD5 authentication
Minimum implementation according to RFC2821: EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT
Parent(s)
\Zend_Mail_Protocol_Smtp < \Zend_Mail_Protocol_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublic__construct(string $host = '127.0.0.1', int $port = null, array $config = null) : void

Constructor.

Parameters
NameTypeDescription
$hoststring

(Default: 127.0.0.1)

$portint

(Default: null)

$configarray

Auth-specific parameters

methodprotected_hmacMd5(string $key, string $data, string $block = 64) : string

Prepare CRAM-MD5 response to server's ticket

Parameters
NameTypeDescription
$keystring

Challenge key (usually password)

$datastring

Challenge data

$blockstring

Length of blocks

Returns
TypeDescription
string
methodpublicauth() : void

Details
Todo
Perform CRAM-MD5 authentication with supplied credentials  
Documentation was generated by phpDocumentor 2.2.0 .