PublicKey Class Reference

Inheritance diagram for PublicKey:

Inheritance graph
[legend]
Collaboration diagram for PublicKey:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class represents the public key portion of an X509 certificate. Unlike the privatekeys of the other classes there are currently no specific subclass types for the different keys.


Public Member Functions

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


Constructor & Destructor Documentation

PublicKey::PublicKey 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/private 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, private key and 'this' altogether

PublicKey::PublicKey X509_CINF *  certInfo,
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. Then ties itself to it's certificate/private key by the CKA_ID it is up to the caller to make it discoverable by Cryptoki

Parameters:
certInfo the openssl struct representing a X509 certificate
cka_id the id that ties the cert, private key and 'this' altogether

PublicKey::~PublicKey void   )  [virtual]
 

Does nothing


Member Function Documentation

CK_OBJECT_CLASS PublicKey::getClass  )  [virtual]
 

returns the Cryptoki class type

Returns:
CKO_PUBLIC_KEY always
See also:
pkcs11t.h

Implements Key.

const char * PublicKey::getDescription  )  [virtual]
 

returns a description of this class to help distinguish it

Returns:
a description of this public 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