Class Pkcs11Lib

Handle to a loaded PKCS#11 library.

For most use cases, a single instance of Pkcs11Lib should be used for the lifetime of your application.

nodejs only.

Hierarchy

  • NativeResource
    • Pkcs11Lib

Constructors

Methods

Constructors

  • Parameters

    • path: string

      Path to PKCS#11 library.

    • behavior: InitializeFinalizeBehavior = Pkcs11Lib.InitializeFinalizeBehavior.DEFAULT

      Specifies how C_Initialize() and C_Finalize() will be called on the PKCS#11 library.

    Returns Pkcs11Lib

Methods

  • Release the PKCS#11 library immediately, without waiting for the GC.

    Returns void

Generated using TypeDoc