[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/ -> Authenticator.php (source)

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


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1