Authenticator.php 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * An Authentication mechanism.
  11. *
  12. * @author Chris Corbyn
  13. */
  14. interface Swift_Transport_Esmtp_Authenticator
  15. {
  16. /**
  17. * Get the name of the AUTH mechanism this Authenticator handles.
  18. *
  19. * @return string
  20. */
  21. public function getAuthKeyword();
  22. /**
  23. * Try to authenticate the user with $username and $password.
  24. *
  25. * @param Swift_Transport_SmtpAgent $agent
  26. * @param string $username
  27. * @param string $password
  28. *
  29. * @return bool
  30. */
  31. public function authenticate(Swift_Transport_SmtpAgent $agent, $username, $password);
  32. }