4
* This file is part of SwiftMailer.
5
* (c) 2004-2009 Chris Corbyn
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
11
//@require 'Swift/Transport/SmtpAgent.php';
14
* An Authentication mechanism.
16
* @subpackage Transport
17
* @author Chris Corbyn
19
interface Swift_Transport_Esmtp_Authenticator
23
* Get the name of the AUTH mechanism this Authenticator handles.
26
public function getAuthKeyword();
29
* Try to authenticate the user with $username and $password.
30
* @param Swift_Transport_SmtpAgent $agent
31
* @param string $username
32
* @param string $password
35
public function authenticate(Swift_Transport_SmtpAgent $agent,
36
$username, $password);