CTAPIManager Class Reference

Collection of CTAPI libraries. More...

#include <CTAPIManager.h>

Inheritance diagram for CTAPIManager:

Inheritance graph
[legend]
Collaboration diagram for CTAPIManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

uint getReaderCount ()
 number of installed readers
std::string getReaderName (uint index)
 name of the reader at index
std::string getReaderState (uint index)
 string form of reader status at index, EMPTY, POWERED etc
std::string getATRHex (uint index)
 hex representation of card ATR in reader at index, empty string if no card is present
CTAPIConnectionconnect (uint index, bool forceT0)
 connects instance of card to reader at index, forceT0 is used for cards that cant speak T1
void getDefaultLibAndPort (std::string &lib, uint &port)
 Gets a first working CTAPI reader library and port.

Protected Member Functions

void makeConnection (ConnectionBase *c, uint idx)
void deleteConnection (ConnectionBase *c)
void beginTransaction (ConnectionBase *c)
void endTransaction (ConnectionBase *c, bool forceReset=false)
void execCommand (ConnectionBase *c, std::vector< byte > &cmd, std::vector< byte > &recv, unsigned int &recvLen)
void execPinEntryCommand (ConnectionBase *c, std::vector< byte > &cmd)
void execPinChangeCommand (ConnectionBase *c, std::vector< byte > &cmd, size_t oldPinLen, size_t newPinLen)
bool isT1Protocol (ConnectionBase *c)
 tell if given connection is using T1 (true) or T0

Detailed Description

Collection of CTAPI libraries.

CTAPIManager represents a collection of CTAPI libraries for smart card readers, with a few builtin known library names and ports for OmniKey and SCM libraries. The libraries are loaded at runtime, to avoid linked-in dependencies


The documentation for this class was generated from the following files:
Generated on Fri Oct 31 12:29:39 2008 for Cardlib reference by  doxygen 1.5.1