class documentation

This decorator uses SCardBeginTransaction/SCardEndTransaction to preserve other processes of threads to access the card during transmit().

Method __init__ Construct a new card connection decorator.
Method lock Lock card with SCardBeginTransaction.
Method transmit Gain exclusive access to card during APDU transmission for if this decorator decorates a PCSCCardConnection.
Method unlock Unlock card with SCardEndTransaction.

Inherited from CardConnectionDecorator:

Method __enter__ Undocumented
Method __exit__ Undocumented
Method addObserver call inner component addObserver
Method addSWExceptionToFilter call inner component addSWExceptionToFilter
Method connect call inner component connect
Method control call inner component control
Method deleteObserver call inner component deleteObserver
Method disconnect call inner component disconnect
Method getATR call inner component getATR
Method getAttrib call inner component getAttrib
Method getProtocol call inner component getProtocol
Method getReader call inner component getReader
Method reconnect call inner component reconnect
Method release call inner component release
Method setErrorCheckingChain call inner component setErrorCheckingChain
Method setProtocol call inner component setProtocol
Instance Variable component Undocumented
def __init__(self, cardconnection):

Construct a new card connection decorator.

CardConnectionComponent: CardConnection component to decorate

def lock(self):

Lock card with SCardBeginTransaction.

def transmit(self, command, protocol=None):

Gain exclusive access to card during APDU transmission for if this decorator decorates a PCSCCardConnection.

def unlock(self):

Unlock card with SCardEndTransaction.