DkimSigner
in package
FinalYes
Tags
Table of Contents
Constants
- ALGO_ED25519 = 'ed25519-sha256'
- ALGO_SHA256 = 'rsa-sha256'
- CANON_RELAXED = 'relaxed'
- CANON_SIMPLE = 'simple'
Properties
- $defaultOptions : mixed
- $domainName : mixed
- $key : mixed
- $selector : mixed
Methods
- __construct() : mixed
- sign() : Message
- canonicalizeHeader() : string
- hashBody() : array<string|int, mixed>
Constants
ALGO_ED25519
public
mixed
ALGO_ED25519
= 'ed25519-sha256'
ALGO_SHA256
public
mixed
ALGO_SHA256
= 'rsa-sha256'
CANON_RELAXED
public
mixed
CANON_RELAXED
= 'relaxed'
CANON_SIMPLE
public
mixed
CANON_SIMPLE
= 'simple'
Properties
$defaultOptions
private
mixed
$defaultOptions
$domainName
private
mixed
$domainName
$key
private
mixed
$key
$selector
private
mixed
$selector
Methods
__construct()
public
__construct(string $pk, string $domainName, string $selector[, array<string|int, mixed> $defaultOptions = [] ][, string $passphrase = '' ]) : mixed
Parameters
- $pk : string
-
The private key as a string or the path to the file containing the private key, should be prefixed with file:// (in PEM format)
- $domainName : string
- $selector : string
- $defaultOptions : array<string|int, mixed> = []
- $passphrase : string = ''
-
A passphrase of the private key (if any)
sign()
public
sign(Message $message[, array<string|int, mixed> $options = [] ]) : Message
Parameters
- $message : Message
- $options : array<string|int, mixed> = []
Return values
MessagecanonicalizeHeader()
private
canonicalizeHeader(string $header, string $headerCanon) : string
Parameters
- $header : string
- $headerCanon : string
Return values
stringhashBody()
private
hashBody(AbstractPart $body, string $bodyCanon, int $maxLength) : array<string|int, mixed>
Parameters
- $body : AbstractPart
- $bodyCanon : string
- $maxLength : int