class DkimSigner implements Signer

Constants

private DefaultSignHeaders

private DkimSignature

Methods

__construct(string $domain, string $selector, string $privateKey, string|null $passPhrase = null, array $signHeaders = self::DefaultSignHeaders)

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 31
__construct(string $domain, string $selector, string $privateKey, string|null $passPhrase = null, array $signHeaders = self::DefaultSignHeaders)

No description

Parameters

string $domain
string $selector
string $privateKey
string|null $passPhrase
array $signHeaders

Exceptions

NotSupportedException

at line 47
string generateSignedMessage(Message $message)

No description

Parameters

Message $message

Return Value

string

Exceptions

SignException

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

No description

Parameters

Message $message
string $header
string $body

Return Value

string

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

No description

Parameters

string $rawHeader
string $signature

Return Value

string

at line 112
protected string sign(string $value)

No description

Parameters

string $value

Return Value

string

Exceptions

SignException

at line 127
protected string computeBodyHash(string $body)

No description

Parameters

string $body

Return Value

string

at line 138
protected string normalizeNewLines(string $s)

No description

Parameters

string $s

Return Value

string

at line 146
protected array getSignedHeaders(Message $message)

No description

Parameters

Message $message

Return Value

array

at line 152
protected int getTime()

No description

Return Value

int