00001 #ifndef KEY_H 00002 #define KEY_H 00003 00004 #include "GenericCryptoObject.h" 00005 #include "common.h" 00006 #include <openssl/x509.h> 00007 00008 00013 class Key : public GenericCryptoObject 00014 { 00015 public: 00021 Key(X509_CINF* certInfo,int cka_id); 00025 virtual ~Key(void); 00029 virtual CK_OBJECT_CLASS getClass() = 0; 00030 00031 protected: 00035 X509_CINF* certInfo; 00039 int cka_id; 00043 CK_DATE start; 00047 CK_DATE end; 00048 00049 00050 }; 00051 #endif 00052