Gck.TokenInfo

Fields

Name

Type

Access

Description

firmware_version_major

int

r/w

The major version of the firmware.

firmware_version_minor

int

r/w

The minor version of the firmware.

flags

int

r/w

Various PKCS11 flags that apply to this token.

free_private_memory

int

r/w

The available amount of memory on this token for storing private objects.

free_public_memory

int

r/w

The available amount of memory on this token for storing public objects.

hardware_version_major

int

r/w

The major version of the hardware.

hardware_version_minor

int

r/w

The minor version of the hardware.

label

str

r/w

The displayable token label.

manufacturer_id

str

r/w

The manufacturer of this slot.

max_pin_len

int

r/w

The maximum length of a PIN for locking this token.

max_rw_session_count

int

r/w

The maximum number of read/write sessions allowed on this token.

max_session_count

int

r/w

The maximum number of sessions allowed on this token.

min_pin_len

int

r/w

The minimum length of a PIN for locking this token.

model

str

r/w

The token model number as a string.

rw_session_count

int

r/w

The number of sessions open on this token.

serial_number

str

r/w

The token serial number as a string.

session_count

int

r/w

The number of sessions open on this token.

total_private_memory

int

r/w

The total amount of memory on this token for storing private objects.

total_public_memory

int

r/w

The total amount of memory on this token for storing public objects.

utc_time

int

r/w

If the token has a hardware clock, this is set to the number of seconds since the epoch.

Methods

copy ()

free ()

Details

class Gck.TokenInfo

Represents information about a PKCS11 token.

This is analogous to a CK_TOKEN_INFO structure, but the strings 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:

Gck.TokenInfo

Make a copy of the token info.

free()[source]

Free the Gck.TokenInfo and associated resources.