Class: PKCS11::CK_TOKEN_INFO

Inherits:
CStruct
  • Object
show all
Defined in:
ext/pk11_struct.doc

Constant Summary collapse

SIZEOF_STRUCT =

Size of corresponding C struct in bytes

Integer

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CStruct

#inspect, #to_hash, #values

Instance Attribute Details

#firmwareVersionPKCS11::CK_VERSION

Returns inline struct.

Returns:



89
90
91
# File 'ext/pk11_struct.doc', line 89

def firmwareVersion
  @firmwareVersion
end

#flagsInteger

Returns accessor for flags (CK_ULONG).

Returns:

  • (Integer)

    accessor for flags (CK_ULONG)



65
66
67
# File 'ext/pk11_struct.doc', line 65

def flags
  @flags
end

#hardwareVersionPKCS11::CK_VERSION

Returns inline struct.

Returns:



87
88
89
# File 'ext/pk11_struct.doc', line 87

def hardwareVersion
  @hardwareVersion
end

#labelUTF8-String

Returns accessor for label (max 32 bytes).

Returns:

  • (UTF8-String)

    accessor for label (max 32 bytes)



57
58
59
# File 'ext/pk11_struct.doc', line 57

def label
  @label
end

#manufacturerIDUTF8-String

Returns accessor for manufacturerID (max 32 bytes).

Returns:

  • (UTF8-String)

    accessor for manufacturerID (max 32 bytes)



59
60
61
# File 'ext/pk11_struct.doc', line 59

def manufacturerID
  @manufacturerID
end

#modelUTF8-String

Returns accessor for model (max 16 bytes).

Returns:

  • (UTF8-String)

    accessor for model (max 16 bytes)



61
62
63
# File 'ext/pk11_struct.doc', line 61

def model
  @model
end

#serialNumberUSASCII-String

Returns accessor for serialNumber (max 16 bytes).

Returns:

  • (USASCII-String)

    accessor for serialNumber (max 16 bytes)



63
64
65
# File 'ext/pk11_struct.doc', line 63

def serialNumber
  @serialNumber
end

#ulFreePrivateMemoryInteger

Returns accessor for ulFreePrivateMemory (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulFreePrivateMemory (CK_ULONG)



85
86
87
# File 'ext/pk11_struct.doc', line 85

def ulFreePrivateMemory
  @ulFreePrivateMemory
end

#ulFreePublicMemoryInteger

Returns accessor for ulFreePublicMemory (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulFreePublicMemory (CK_ULONG)



81
82
83
# File 'ext/pk11_struct.doc', line 81

def ulFreePublicMemory
  @ulFreePublicMemory
end

#ulMaxPinLenInteger

Returns accessor for ulMaxPinLen (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulMaxPinLen (CK_ULONG)



75
76
77
# File 'ext/pk11_struct.doc', line 75

def ulMaxPinLen
  @ulMaxPinLen
end

#ulMaxRwSessionCountInteger

Returns accessor for ulMaxRwSessionCount (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulMaxRwSessionCount (CK_ULONG)



71
72
73
# File 'ext/pk11_struct.doc', line 71

def ulMaxRwSessionCount
  @ulMaxRwSessionCount
end

#ulMaxSessionCountInteger

Returns accessor for ulMaxSessionCount (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulMaxSessionCount (CK_ULONG)



67
68
69
# File 'ext/pk11_struct.doc', line 67

def ulMaxSessionCount
  @ulMaxSessionCount
end

#ulMinPinLenInteger

Returns accessor for ulMinPinLen (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulMinPinLen (CK_ULONG)



77
78
79
# File 'ext/pk11_struct.doc', line 77

def ulMinPinLen
  @ulMinPinLen
end

#ulRwSessionCountInteger

Returns accessor for ulRwSessionCount (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulRwSessionCount (CK_ULONG)



73
74
75
# File 'ext/pk11_struct.doc', line 73

def ulRwSessionCount
  @ulRwSessionCount
end

#ulSessionCountInteger

Returns accessor for ulSessionCount (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulSessionCount (CK_ULONG)



69
70
71
# File 'ext/pk11_struct.doc', line 69

def ulSessionCount
  @ulSessionCount
end

#ulTotalPrivateMemoryInteger

Returns accessor for ulTotalPrivateMemory (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulTotalPrivateMemory (CK_ULONG)



83
84
85
# File 'ext/pk11_struct.doc', line 83

def ulTotalPrivateMemory
  @ulTotalPrivateMemory
end

#ulTotalPublicMemoryInteger

Returns accessor for ulTotalPublicMemory (CK_ULONG).

Returns:

  • (Integer)

    accessor for ulTotalPublicMemory (CK_ULONG)



79
80
81
# File 'ext/pk11_struct.doc', line 79

def ulTotalPublicMemory
  @ulTotalPublicMemory
end

#utcTimeUSASCII-String

Returns accessor for utcTime (max 16 bytes).

Returns:

  • (USASCII-String)

    accessor for utcTime (max 16 bytes)



91
92
93
# File 'ext/pk11_struct.doc', line 91

def utcTime
  @utcTime
end

Instance Method Details

#membersArray<String>

Returns Attributes of this struct.

Returns:

  • (Array<String>)

    Attributes of this struct



55
# File 'ext/pk11_struct.doc', line 55

def members; end

#to_sString

Returns Binary copy of the C struct.

Returns:

  • (String)

    Binary copy of the C struct



53
# File 'ext/pk11_struct.doc', line 53

def to_s; end