Documentation

CramMd5Authenticator
in package
implements AuthInterface

CRAM-MD5 Auth class

Tags
category

Pop

author

Chris Corbyn, from the SwiftMailer library https://github.com/swiftmailer/swiftmailer

version
4.0.0

Table of Contents

Interfaces

AuthInterface
SMTP authenticator interface

Methods

authenticate()  : bool
Try to authenticate the user with $username and $password
getAuthKeyword()  : string
Get the name of the AUTH mechanism this Authenticator handles
getResponse()  : string
Generate a CRAM-MD5 response from a server challenge

Methods

authenticate()

Try to authenticate the user with $username and $password

public authenticate(AgentInterface $agent, string $username, string $password) : bool
Parameters
$agent : AgentInterface
$username : string
$password : string
Return values
bool

getAuthKeyword()

Get the name of the AUTH mechanism this Authenticator handles

public getAuthKeyword() : string
Return values
string

getResponse()

Generate a CRAM-MD5 response from a server challenge

private getResponse(string $secret, string $challenge) : string
Parameters
$secret : string
$challenge : string
Return values
string

        
On this page

Search results