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

    Class DkimVerifierBaseAbstract

    A base class for DKIM and ARC verifiers.

    Hierarchy (View Summary)

    Index
    minimumRsaKeyLength: number

    The minimum allowed RSA key length.

    publicKeyLocator: DkimPublicKeyLocator

    The public key locator.

    • Parse the parameter tags of a DKIM/ARC header value.

      Parameters

      • header: HeaderId

        The header identifier (for error messages).

      • signature: string

        The header value.

      Returns Map<string, string>

      A map of parameter names to values.

      The value is malformed.

    • Validate the common DKIM/ARC parameter tags.

      Parameters

      • header: string

        The header name (for error messages).

      • parameters: Map<string, string>

        The parsed parameters.

      Returns CommonParameters

      The validated common parameters.

      A required parameter is missing or malformed.

    • Validate the common DKIM/ARC signature parameter tags.

      Parameters

      • header: string

        The header name (for error messages).

      • parameters: Map<string, string>

        The parsed parameters.

      Returns CommonSignatureParameters

      The validated common signature parameters.

      A required parameter is missing or malformed.

    • Write a header using the DKIM relaxed header canonicalization.

      Parameters

      • options: FormatOptions

        The formatting options.

      • stream: Stream

        The output stream.

      • header: Header

        The header to write.

      • isDkimSignature: boolean

        Whether this is the DKIM/ARC signature header.

      Returns void

    • Write a header using the DKIM simple header canonicalization.

      Parameters

      • _options: FormatOptions

        The formatting options (unused).

      • stream: Stream

        The output stream.

      • header: Header

        The header to write.

      • isDkimSignature: boolean

        Whether this is the DKIM/ARC signature header.

      Returns void

    • Get the signed DKIM/ARC signature header (with the b= value stripped).

      Parameters

      • header: Header

        The DKIM-Signature/ARC-* header.

      Returns Header

      A new header whose value has the signature value removed.

      The signature parameter is missing.