class DkimSigner implements Signer

Traits

Strict class for better experience.

Constants

DEFAULT_SIGN_HEADERS

DKIM_SIGNATURE

Methods

__construct(array $options, array $signHeaders = self::DEFAULT_SIGN_HEADERS)

No description

string
generateSignedMessage(Message $message)

No description

string
getSignature(Message $message, string $header, string $body)

No description

string
computeSignature(string $rawHeader, string $signature)

No description

string
sign(string $value)

No description

string
computeBodyHash(string $body)

No description

string
normalizeNewLines(string $s)

No description

array
getSignedHeaders(Message $message)

No description

Details

at line 53
__construct(array $options, array $signHeaders = self::DEFAULT_SIGN_HEADERS)

Parameters

array $options
array $signHeaders

Exceptions

NotSupportedException

at line 70
string generateSignedMessage(Message $message)

Parameters

Message $message

Return Value

string

Exceptions

SignException

at line 83
protected string getSignature(Message $message, string $header, string $body)

Parameters

Message $message
string $header
string $body

Return Value

string

at line 108
protected string computeSignature(string $rawHeader, string $signature)

Parameters

string $rawHeader
string $signature

Return Value

string

at line 136
protected string sign(string $value)

Parameters

string $value

Return Value

string

Exceptions

SignException

at line 151
protected string computeBodyHash(string $body)

Parameters

string $body

Return Value

string

at line 162
protected string normalizeNewLines(string $s)

Parameters

string $s

Return Value

string

at line 170
protected array getSignedHeaders(Message $message)

Parameters

Message $message

Return Value

array