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

    Interface IDigitalSignature

    An interface for a digital signature.

    interface IDigitalSignature {
        signerCertificate: IDigitalCertificate | null;
        publicKeyAlgorithm: PublicKeyAlgorithm;
        digestAlgorithm: DigestAlgorithm;
        creationDate: Date;
        verify(verifySignatureOnly?: boolean): Promise<boolean>;
    }

    Implemented by

    Index
    signerCertificate: IDigitalCertificate | null

    The certificate used by the signer.

    publicKeyAlgorithm: PublicKeyAlgorithm

    The public key algorithm used for the signature.

    digestAlgorithm: DigestAlgorithm

    The digest algorithm used for the signature.

    creationDate: Date

    The creation date of the digital signature.

    • Verify the digital signature.

      Parameters

      • OptionalverifySignatureOnly: boolean

        When true, only the signature itself is verified; otherwise both the signature and the certificate chain are validated.

      Returns Promise<boolean>

      true if the signature is valid.

      An error verifying the signature occurred.