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\AuthView 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 |