Package PyKCS11 :: Class CK_SESSION_INFO
[hide private]
[frames] | no frames]

Class CK_SESSION_INFO

source code

object --+    
         |    
   CkClass --+
             |
            CK_SESSION_INFO

matches the PKCS#11 CK_SESSION_INFO structure

Instance Methods [hide private]
string
state2text(self)
parse the self.state field and return a "CKS_*" string corresponding to the state
source code

Inherited from CkClass: __str__, flags2text, to_dict

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  flags_dict = {CKF_RW_SESSION: "CKF_RW_SESSION", CKF_SERIAL_SES...
  fields = {"slotID": "text", "state": "text", "flags": "flags",...
Instance Variables [hide private]
integer flags
bit flags that define the type of session
integer slotID
ID of the slot that interfaces with the token
integer state
state of the session
integer ulDeviceError
an error code defined by the cryptographic token
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

state2text(self)

source code 

parse the self.state field and return a "CKS_*" string corresponding to the state

Returns: string
a string

Class Variable Details [hide private]

flags_dict

Value:
{CKF_RW_SESSION: "CKF_RW_SESSION", CKF_SERIAL_SESSION: "CKF_SERIAL_SES\
SION",}

fields

Value:
{"slotID": "text", "state": "text", "flags": "flags", "ulDeviceError":\
 "text"}