Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PlainAuthenticator.php

class PlainAuthenticator

Handles PLAIN authentication.

@author Chris Corbyn

Hierarchy

  • class \Symfony\Component\Mailer\Transport\Smtp\Auth\PlainAuthenticator implements \Symfony\Component\Mailer\Transport\Smtp\Auth\AuthenticatorInterface

Expanded class hierarchy of PlainAuthenticator

File

vendor/symfony/mailer/Transport/Smtp/Auth/PlainAuthenticator.php, line 21

Namespace

Symfony\Component\Mailer\Transport\Smtp\Auth
View source
class PlainAuthenticator implements AuthenticatorInterface {
    public function getAuthKeyword() : string {
        return 'PLAIN';
    }
    
    /**
     * @see https://www.ietf.org/rfc/rfc4954.txt
     */
    public function authenticate(EsmtpTransport $client) : void {
        $client->executeCommand(\sprintf("AUTH PLAIN %s\r\n", base64_encode($client->getUsername() . \chr(0) . $client->getUsername() . \chr(0) . $client->getPassword())), [
            235,
        ]);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
PlainAuthenticator::authenticate public function Overrides AuthenticatorInterface::authenticate
PlainAuthenticator::getAuthKeyword public function Gets the name of the AUTH mechanism this Authenticator handles. Overrides AuthenticatorInterface::getAuthKeyword

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal