PivObject Class Reference

Inheritance diagram for PivObject:

Inheritance graph
[legend]
Collaboration diagram for PivObject:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class is represents the root object of all objects accessible on the PIV card


Public Member Functions

virtual ~PivObject (void)
virtual string getOid ()=0
 PivObject (const char *oid, UTILCardHandle handle)

Public Attributes

PIV_Byte data [4096]
PIV_ULong32 dataLength


Constructor & Destructor Documentation

PivObject::~PivObject void   )  [virtual]
 

Does nothing

PivObject::PivObject const char *  oid,
UTILCardHandle  handle
 

Cryptoki must know the CLASS of object represented by this object

Returns:
the CRYPOKI class type for this object /** This class is abstract and cannot be directly instantiated. Only subclasses may construct it. but to do so, the OID is necessary as well and an active connection to the card. This doesn't not NEED to be a logged in connection.
Parameters:
oid the object ID of 'this'.
handle a connection handle to the card


Member Function Documentation

virtual string PivObject::getOid  )  [pure virtual]
 

In order to access an object on the card you must have the OID. As a result, it is required by all subclasses.

Returns:
a dotted decimal OID

Implemented in CardCapabilityContainer, and X509Certificate.


Member Data Documentation

PIV_Byte PivObject::data[4096]
 

We use a static buffer to receive information from the card. Why use dynamic memory if you don't have to?

PIV_ULong32 PivObject::dataLength
 

initially this will be sizeof(data) but, after a call to the PIV card it will be the actual length of data returned.


Generated on Fri Jan 12 15:48:45 2007 for NIST_PKCS11 by doxygen 1.3.1 using KingsTools