TYPO3 API  SVNRelease
Authenticator.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * This file is part of SwiftMailer.
00005  * (c) 2004-2009 Chris Corbyn
00006  *
00007  * For the full copyright and license information, please view the LICENSE
00008  * file that was distributed with this source code.
00009  */
00010 
00011 //@require 'Swift/Transport/SmtpAgent.php';
00012 
00013 /**
00014  * An Authentication mechanism.
00015  * @package Swift
00016  * @subpackage Transport
00017  * @author Chris Corbyn
00018  */
00019 interface Swift_Transport_Esmtp_Authenticator
00020 {
00021 
00022   /**
00023    * Get the name of the AUTH mechanism this Authenticator handles.
00024    * @return string
00025    */
00026   public function getAuthKeyword();
00027 
00028   /**
00029    * Try to authenticate the user with $username and $password.
00030    * @param Swift_Transport_SmtpAgent $agent
00031    * @param string $username
00032    * @param string $password
00033    * @return boolean
00034    */
00035   public function authenticate(Swift_Transport_SmtpAgent $agent,
00036     $username, $password);
00037 
00038 }