Gck.TokenInfo¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
firmware_version_major |
r/w |
The major version of the firmware. |
|
firmware_version_minor |
r/w |
The minor version of the firmware. |
|
flags |
r/w |
Various PKCS11 flags that apply to this token. |
|
free_private_memory |
r/w |
The available amount of memory on this token for storing private objects. |
|
free_public_memory |
r/w |
The available amount of memory on this token for storing public objects. |
|
hardware_version_major |
r/w |
The major version of the hardware. |
|
hardware_version_minor |
r/w |
The minor version of the hardware. |
|
label |
r/w |
The displayable token label. |
|
manufacturer_id |
r/w |
The manufacturer of this slot. |
|
max_pin_len |
r/w |
The maximum length of a PIN for locking this token. |
|
max_rw_session_count |
r/w |
The maximum number of read/write sessions allowed on this token. |
|
max_session_count |
r/w |
The maximum number of sessions allowed on this token. |
|
min_pin_len |
r/w |
The minimum length of a PIN for locking this token. |
|
model |
r/w |
The token model number as a string. |
|
rw_session_count |
r/w |
The number of sessions open on this token. |
|
serial_number |
r/w |
The token serial number as a string. |
|
session_count |
r/w |
The number of sessions open on this token. |
|
total_private_memory |
r/w |
The total amount of memory on this token for storing private objects. |
|
total_public_memory |
r/w |
The total amount of memory on this token for storing public objects. |
|
utc_time |
r/w |
If the token has a hardware clock, this is the UTC |
Methods¶
|
|
|
Details¶
- class Gck.TokenInfo¶
Represents information about a PKCS#11 token.
This is analogous to a
CK_TOKEN_INFO
structure, but the fields are far more usable.When you’re done with this structure it should be released with
Gck.TokenInfo.free
().- copy()[source]¶
- Returns:
a newly allocated copy token info
- Return type:
Make a copy of the token info.
- free()[source]¶
Free the
Gck.TokenInfo
and associated resources.