Skip to main content

Interface: Pkcs11Inspection

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:34

What the custodian's inspect() found. Never holds the PIN or anything from it.

Properties​

library​

readonly library: string

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:36

The library's path, as the custodian was configured with it.


listed​

readonly listed: boolean

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:57

Whether the library answered C_GetSlotList. false means the module failed while being asked (a device error, a library fault), and tokens is empty for that reason.


loadMs​

readonly loadMs: number

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:38

How long loading and initialising the library took at start, in whole milliseconds.


loggedIn​

readonly loggedIn: boolean

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:46

Whether the custodian holds a login on that token now. It logged in at start; this is false only after the module reported the login lost and signing in again failed, or after close().


token?​

readonly optional token?: TokenDescription

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:52

The started-on token as it describes itself now, read from the slot the custodian opened its sessions on. Absent when that slot no longer answers (the token was removed, or the module has failed).


tokenLabel​

readonly tokenLabel: string

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:40

The label of the token the custodian was started on.


tokens​

readonly tokens: readonly TokenDescription[]

Defined in: packages/key-custodian/src/pkcs11/inspect.ts:59

Every token the library lists now, in its order. A slot that will not describe itself is left out.