Zend Framework  1.12
Public Member Functions | Protected Member Functions | List of all members
Zend_Mail_Protocol_Smtp_Auth_Crammd5 Class Reference

Public Member Functions

 __construct ($host= '127.0.0.1', $port=null, $config=null)
 Constructor.
 
 auth ()
 
- Public Member Functions inherited from Zend_Mail_Protocol_Smtp
 __construct ($host= '127.0.0.1', $port=null, array $config=array())
 Constructor.
 
 connect ()
 Connect to the server with the parameters given in the constructor.
 
 helo ($host= '127.0.0.1')
 Initiate HELO/EHLO sequence and set flag to indicate valid smtp session.
 
 mail ($from)
 Issues MAIL command.
 
 rcpt ($to)
 Issues RCPT command.
 
 data ($data)
 Issues DATA command.
 
 rset ()
 Issues the RSET command and validates answer.
 
 noop ()
 Issues the NOOP command and validates answer.
 
 vrfy ($user)
 Issues the VRFY command and validates answer.
 
 quit ()
 Issues the QUIT command and clears the current session.
 
 auth ()
 Default authentication method.
 
 disconnect ()
 Closes connection.
 
- Public Member Functions inherited from Zend_Mail_Protocol_Abstract
 __construct ($host= '127.0.0.1', $port=null)
 Constructor.
 
 __destruct ()
 Class destructor to cleanup open resources.
 
 setMaximumLog ($maximumLog)
 Set the maximum log size.
 
 getMaximumLog ()
 Get the maximum log size.
 
 connect ()
 Create a connection to the remote host.
 
 getRequest ()
 Retrieve the last client request.
 
 getResponse ()
 Retrieve the last server response.
 
 getLog ()
 Retrieve the transaction log.
 
 resetLog ()
 Reset the transaction log.
 

Protected Member Functions

 _hmacMd5 ($key, $data, $block=64)
 Prepare CRAM-MD5 response to server's ticket.
 
- Protected Member Functions inherited from Zend_Mail_Protocol_Smtp
 _ehlo ($host)
 Send EHLO or HELO depending on capabilities of smtp host.
 
 _startSession ()
 Start mail session.
 
 _stopSession ()
 Stop mail session.
 
- Protected Member Functions inherited from Zend_Mail_Protocol_Abstract
 _addLog ($value)
 Add the transaction log.
 
 _connect ($remote)
 Connect to the server using the supplied transport and target.
 
 _disconnect ()
 Disconnect from remote host and free resource.
 
 _send ($request)
 Send the given request followed by a LINEEND to the server.
 
 _receive ($timeout=null)
 
 _expect ($code, $timeout=null)
 Parse server response for successful codes.
 
 _setStreamTimeout ($timeout)
 Set stream timeout.
 

Additional Inherited Members

- Public Attributes inherited from Zend_Mail_Protocol_Abstract
const EOL = "\r\n"
 Mail default EOL string.
 
const TIMEOUT_CONNECTION = 30
 Default timeout in seconds for initiating session.
 
- Protected Attributes inherited from Zend_Mail_Protocol_Smtp
 $_transport = 'tcp'
 
 $_secure
 
 $_sess = false
 
 $_helo = false
 
 $_auth = false
 
 $_mail = false
 
 $_rcpt = false
 
 $_data = null
 

Constructor & Destructor Documentation

__construct (   $host = '127.0.0.1',
  $port = null,
  $config = null 
)

Constructor.

Parameters
string$host(Default: 127.0.0.1)
int$port(Default: null)
array$configAuth-specific parameters
Returns
void

Member Function Documentation

_hmacMd5 (   $key,
  $data,
  $block = 64 
)
protected

Prepare CRAM-MD5 response to server's ticket.

Parameters
string$keyChallenge key (usually password)
string$dataChallenge data
string$blockLength of blocks
Returns
string
auth ( )
Todo:
Perform CRAM-MD5 authentication with supplied credentials
Returns
void