PrivateKey Class Reference

Inheritance diagram for PrivateKey:

Inheritance graph
[legend]
Collaboration diagram for PrivateKey:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class represents the private key portion of an X509 certificate. It is only a summary of the private key and important attributes, such as the modulus.


Public Member Functions

 PrivateKey (X509_CINF *certInfo, Token *thisToken, int cka_id)
virtual ~PrivateKey (void)
CK_OBJECT_CLASS getClass ()
const char * getDescription ()


Constructor & Destructor Documentation

PrivateKey::PrivateKey X509_CINF *  certInfo,
Token *  thisToken,
int  cka_id
 

This constructor plucks certain important pieces from the certInfo so that it can supply them to Cryptoki as attributes to search for. Secondly, it adds itself to 'thisToken' so that it is searchable and thirdly, it is tied to it's certificate/public key by the CKA_ID

Parameters:
certInfo the openssl struct representing a X509 certificate
thisToken the token that 'this' will be added to
cka_id the id that ties the cert, public key and 'this' altogether

PrivateKey::~PrivateKey void   )  [virtual]
 

Does Nothing


Member Function Documentation

CK_OBJECT_CLASS PrivateKey::getClass  )  [virtual]
 

returns the Cryptoki class type

Returns:
CKO_PRIVATE_KEY always
See also:
pkcs11t.h

Implements Key.

const char * PrivateKey::getDescription  )  [virtual]
 

returns a description of this class to help distinguish it

Returns:
a description of this private key -- fullfilling requirements from Key

Implements CryptoObject.


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