CramMd5Authenticator
in package
implements
AuthenticatorInterface
Handles CRAM-MD5 authentication.
Tags
Table of Contents
Interfaces
- AuthenticatorInterface
- An Authentication mechanism.
Methods
- authenticate() : void
- Tries to authenticate the user.
- getAuthKeyword() : string
- Gets the name of the AUTH mechanism this Authenticator handles.
- getResponse() : string
- Generates a CRAM-MD5 response from a server challenge.
Methods
authenticate()
Tries to authenticate the user.
public
authenticate(EsmtpTransport $client) : void
Parameters
- $client : EsmtpTransport
Tags
getAuthKeyword()
Gets the name of the AUTH mechanism this Authenticator handles.
public
getAuthKeyword() : string
Return values
stringgetResponse()
Generates a CRAM-MD5 response from a server challenge.
private
getResponse(string $secret, string $challenge) : string
Parameters
- $secret : string
- $challenge : string