PHP Class Swift_Transport_Esmtp_Auth_CramMd5Authenticator, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Transport_Esmtp_Authenticator
Mostra file Open project: HaliteChallenge/Halite

Public Methods

Method Description
authenticate ( Swift_Transport_SmtpAgent $agent, string $username, string $password ) : boolean Try to authenticate the user with $username and $password.
getAuthKeyword ( ) : string Get the name of the AUTH mechanism this Authenticator handles.

Private Methods

Method Description
_getResponse ( string $secret, string $challenge ) : string Generate a CRAM-MD5 response from a server challenge.

Method Details

authenticate() public method

Try to authenticate the user with $username and $password.
public authenticate ( Swift_Transport_SmtpAgent $agent, string $username, string $password ) : boolean
$agent Swift_Transport_SmtpAgent
$username string
$password string
return boolean

getAuthKeyword() public method

Get the name of the AUTH mechanism this Authenticator handles.
public getAuthKeyword ( ) : string
return string