Factory to create HSM Signers.

interface HSMSignerFactory {
    dispose(): void;
    newSigner(hsmSignerOptions: HSMSignerOptions): HSMSigner;
}

Methods

  • Dispose of the factory when it, and any HSM signers created by it, are no longer required.

    Returns void

  • Create a new HSM signing implementation based on provided HSM options.

    This returns an object with two properties:

    1. the signer function.
    2. a close function to be called when the signer is no longer required.

    Parameters

    Returns HSMSigner

    an HSM Signer implementation.