interface ICertificateManager {
    checkCertificate(certificate: Buffer): Promise<StatusCode>;
    checkCertificate(certificate: Buffer, callback: StatusCodeCallback): void;
    getTrustStatus(certificate: Buffer): Promise<StatusCode>;
    getTrustStatus(certificate: Buffer, callback: StatusCodeCallback): void;
    rejectCertificate(certificate: Buffer, callback: ((err?: null | Error) => void)): void;
    rejectCertificate(certificate: Buffer): Promise<void>;
    trustCertificate(certificate: Buffer, callback: ((err?: null | Error) => void)): void;
    trustCertificate(certificate: Buffer): Promise<void>;
}

Implemented by

Methods

  • Parameters

    • certificate: Buffer

    Returns Promise<StatusCode>

  • Parameters

    Returns void

  • Parameters

    • certificate: Buffer

    Returns Promise<StatusCode>

  • Parameters

    Returns void

  • Parameters

    • certificate: Buffer
    • callback: ((err?: null | Error) => void)
        • (err?): void
        • Parameters

          • Optionalerr: null | Error

          Returns void

    Returns void

  • Parameters

    • certificate: Buffer

    Returns Promise<void>

  • Parameters

    • certificate: Buffer
    • callback: ((err?: null | Error) => void)
        • (err?): void
        • Parameters

          • Optionalerr: null | Error

          Returns void

    Returns void

  • Parameters

    • certificate: Buffer

    Returns Promise<void>