mimekit-ts - v1.0.0
    Preparing search index...

    Class DkimSigner

    A DKIM signer.

    Hierarchy (View Summary)

    Index
    domain: string

    The domain that the signer represents.

    selector: string

    The selector subdividing the domain.

    signatureAlgorithm: DkimSignatureAlgorithm

    The algorithm to use for signing.

    bodyCanonicalizationAlgorithm: DkimCanonicalizationAlgorithm = DkimCanonicalizationAlgorithm.Simple

    The canonicalization algorithm to use for the message body.

    headerCanonicalizationAlgorithm: DkimCanonicalizationAlgorithm = DkimCanonicalizationAlgorithm.Simple

    The canonicalization algorithm to use for the message headers.

    signaturesExpireAfter: number | null = null

    The number of seconds after which signatures are no longer valid, or null for no expiration (C#: SignaturesExpireAfter, a TimeSpan).

    privateKey: AsymmetricKey

    The private key used for signing.

    agentOrUserIdentifier: string | null = null

    The agent or user identifier.

    queryMethod: string | null = null

    The public key query method.

    • Get the timestamp to use as the t= value in the DKIM-Signature header.

      Returns number

      The Unix timestamp in seconds.

    • Digitally sign the message using a DKIM signature.

      Parameters

      Returns Promise<void>

      A required argument is null, or the header list is invalid.

    • Digitally sign the message using a DKIM signature.

      Parameters

      Returns Promise<void>

      A required argument is null, or the header list is invalid.