class DkimSigner implements Signer

Constants

private DEFAULT_SIGN_HEADERS

private 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

int
getTime()

No description

Details

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

No description

Parameters

array $options
array $signHeaders

Exceptions

NotSupportedException

at line 60
string generateSignedMessage(Message $message)

No description

Parameters

Message $message

Return Value

string

Exceptions

SignException

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

No description

Parameters

Message $message
string $header
string $body

Return Value

string

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

No description

Parameters

string $rawHeader
string $signature

Return Value

string

at line 125
protected string sign(string $value)

No description

Parameters

string $value

Return Value

string

Exceptions

SignException

at line 140
protected string computeBodyHash(string $body)

No description

Parameters

string $body

Return Value

string

at line 151
protected string normalizeNewLines(string $s)

No description

Parameters

string $s

Return Value

string

at line 159
protected array getSignedHeaders(Message $message)

No description

Parameters

Message $message

Return Value

array

at line 165
protected int getTime()

No description

Return Value

int

Traits

Strict class for better experience.