A Promise
that will be fulfilled with an array of objects, one for each slot that the module provides access to. Each object has two properties:
-
name
: the name of the slot
-
token
: if a token is present in this slot, a Token
object. If no token is present in the slot, this property is null
.
Token
objects have the following properties:
-
name
-
string
. Name of the token.
-
manufacturer
-
string
. Name of the token's manufacturer.
-
HWVersion
-
string
. Hardware version, as a PKCS #11 version number (two 32-bit integers separated with a dot, like "1.0".
-
FWVersion
-
string
. Firmware version, as a PKCS #11 version number (two 32-bit integers separated with a dot, like "1.0".
-
serial
-
string
. Serial number, whose format is defined by the token specification.
-
isLoggedIn
-
boolean
: true
if the token is logged on already, false
otherwise.
If the module could not be found or some other error occurs, the promise will be rejected with an error message.