Hierarchy

  • Management

Methods

  • Description

    Reads the shadow of a smart card M from N Dinamo.

    Returns

    • Shadow read data.

    Throws

    HsmError If an error occurs in the operation.

    Remarks

    NOTE: To carry out this operation, you need to install the HSM Client in the Full option on the device. You can download the HSM Client via this link. You must also use an approved smartcard reader to read the cards.

    Parameters

    • pin: string

      Card PIN. It must be an ASCII numeric string with a maximum length of constants.DN_SC_MAX_PIN_LEN.

    Returns Promise<string>

  • Description

    Configures the authentication status of the NS (Network Security) system.

    Returns

    • It resolves if the configuration is successful.

    Throws

    HsmError If an error occurs in the operation or if a parameter is invalid.

    Parameters

    • aclMask: ACL_MASK

      Access control mask (ACL_MASK). It can be a combination of allowed values (e.g. ACL_MASK.OBJ_READ | ACL_MASK.USR_CREATE | ACL_MASK.SYS_OPERATOR) using bitwise operations.

    • state: NSAUTH_STATE

      NS authentication state (STATE). Must be one of the values in the NSAUTH_STATE enum.

    • share: string[]

      Array of hexadecimal strings representing the shares M of N. Each share must be a hexadecimal string.

    Returns Promise<boolean>