PHP Class Swift_Transport_Esmtp_Auth_CramMd5Authenticator, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Transport_Esmtp_Authenticator
Afficher le fichier Open project: HaliteChallenge/Halite

Méthodes publiques

Méthode 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

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

Method Details

authenticate() public méthode

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
Résultat boolean

getAuthKeyword() public méthode

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