Function connect

  • Description

    Initializes the connection to the HSM

    Returns

    • Client instance with connection established

    Throws

    HsmError - Some configuration option has not been specified or is incorrect

    Throws

    ConnectionError - Unable to establish connection with HSM

    Throws

    HsmError - Generic HSM error

    Parameters

    • Optional options: HsmOptions

      HSM configuration options

    Returns Promise<Hsm>