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 48
__construct(array $options, array $signHeaders = self::DEFAULT_SIGN_HEADERS)

No description

Parameters

array $options
array $signHeaders

Exceptions

NotSupportedException

at line 64
string generateSignedMessage(Message $message)

No description

Parameters

Message $message

Return Value

string

Exceptions

SignException

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

No description

Parameters

Message $message
string $header
string $body

Return Value

string

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

No description

Parameters

string $rawHeader
string $signature

Return Value

string

at line 128
protected string sign(string $value)

No description

Parameters

string $value

Return Value

string

Exceptions

SignException

at line 148
protected string computeBodyHash(string $body)

No description

Parameters

string $body

Return Value

string

at line 159
protected string normalizeNewLines(string $s)

No description

Parameters

string $s

Return Value

string

at line 167
protected array getSignedHeaders(Message $message)

No description

Parameters

Message $message

Return Value

array

at line 175
protected int getTime()

No description

Return Value

int

Traits

Strict class for better experience.