Authenticator.php 877 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Swift Mailer Authenticator Interface
  4. * Please read the LICENSE file
  5. * @author Chris Corbyn <chris@w3style.co.uk>
  6. * @package Swift_Authenticator
  7. * @license GNU Lesser General Public License
  8. */
  9. /**
  10. * Swift Authenticator Interface
  11. * Lists the methods all authenticators must implement
  12. * @package Swift_Authenticator
  13. * @author Chris Corbyn <chris@w3style.co.uk>
  14. */
  15. interface Swift_Authenticator
  16. {
  17. /**
  18. * Try to authenticate using the username and password
  19. * Returns false on failure
  20. * @param string The username
  21. * @param string The password
  22. * @param Swift The instance of Swift this authenticator is used in
  23. * @return boolean
  24. */
  25. public function isAuthenticated($username, $password, Swift $instance);
  26. /**
  27. * Return the name of the AUTH extension this is for
  28. * @return string
  29. */
  30. public function getAuthExtensionName();
  31. }