00001 #ifndef PUBLIC_KEY_H 00002 #define PUBLIC_KEY_H 00003 00004 #include "Key.h" 00005 00006 class Token; 00007 00012 class PublicKey : public Key 00013 { 00014 public: 00023 PublicKey(X509_CINF* certInfo,Token* thisToken,int cka_id); 00031 PublicKey(X509_CINF* certInfo,int cka_id); 00035 virtual ~PublicKey(void); 00041 CK_OBJECT_CLASS getClass(); 00046 const char* getDescription(); 00047 00048 private: 00052 static CK_OBJECT_CLASS CLASS; 00056 static CK_KEY_TYPE KEY_TYPE; 00060 int bitSize; 00065 void addAttributes(X509_PUBKEY* pubKey,int cka_id); 00069 static const char MY_DESC[]; 00070 }; 00071 #endif