Gck.TokenInfo
Description: Reference for Gck.TokenInfo

### Struct

# GckTokenInfo

#### Description [src]

    struct GckTokenInfo {
      gchar* label;
      gchar* manufacturer_id;
      gchar* model;
      gchar* serial_number;
      gulong flags;
      glong max_session_count;
      glong session_count;
      glong max_rw_session_count;
      glong rw_session_count;
      glong max_pin_len;
      glong min_pin_len;
      glong total_public_memory;
      glong free_public_memory;
      glong total_private_memory;
      glong free_private_memory;
      guint8 hardware_version_major;
      guint8 hardware_version_minor;
      guint8 firmware_version_major;
      guint8 firmware_version_minor;
      gint64 utc_time;
    }

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_token_info_free().

###### Structure members

`label:` `gchar*`

  The displayable token label.

`manufacturer_id:` `gchar*`

  The manufacturer of this slot.

`model:` `gchar*`

  The token model number as a string.

`serial_number:` `gchar*`

  The token serial number as a string.

`flags:` `gulong`

  Various PKCS11 flags that apply to this token.

`max_session_count:` `glong`

  The maximum number of sessions allowed on this token.

`session_count:` `glong`

  The number of sessions open on this token.

`max_rw_session_count:` `glong`

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

`rw_session_count:` `glong`

  The number of sessions open on this token.

`max_pin_len:` `glong`

  The maximum length of a PIN for locking this token.

`min_pin_len:` `glong`

  The minimum length of a PIN for locking this token.

`total_public_memory:` `glong`

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

`free_public_memory:` `glong`

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

`total_private_memory:` `glong`

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

`free_private_memory:` `glong`

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

`hardware_version_major:` `guint8`

  The major version of the hardware.

`hardware_version_minor:` `guint8`

  The minor version of the hardware.

`firmware_version_major:` `guint8`

  The major version of the firmware.

`firmware_version_minor:` `guint8`

  The minor version of the firmware.

`utc_time:` `gint64`

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

#### Instance methods

###### gck_token_info_copy

Make a copy of the token info.

###### gck_token_info_free

Free the GckTokenInfo and associated resources.