126. Class

126.1. Zend\Mail\Protocol\Smtp\Auth\Crammd5

Performs CRAM-MD5 authentication

126.1.1. Methods

126.1.1.1. __construct

__construct()

Constructor.

All parameters may be passed as an array to the first argument of the constructor. If so,

Parameters:
  • string|array – (Default: 127.0.0.1)
  • null|int – (Default: null)
  • null|array – Auth-specific parameters

126.1.1.2. auth

auth()

@todo Perform CRAM-MD5 authentication with supplied credentials

126.1.1.3. setUsername

setUsername()

Set value for username

Parameters:string
Return type:Crammd5

126.1.1.4. getUsername

getUsername()

Get username

Return type:string

126.1.1.5. setPassword

setPassword()

Set value for password

Parameters:string
Return type:Crammd5

126.1.1.6. getPassword

getPassword()

Get password

Return type:string

126.1.1.7. _hmacMd5

_hmacMd5()

Prepare CRAM-MD5 response to server’s ticket

Parameters:
  • string – Challenge key (usually password)
  • string – Challenge data
  • int – Length of blocks
Return type:

string