libcryptosec
SmartcardCertificate.h
Go to the documentation of this file.
1 #ifndef SMARTCARDCERTIFICATE_H_
2 #define SMARTCARDCERTIFICATE_H_
3 
4 #include <openssl/x509.h>
5 
6 #include <string>
7 
9 
18 {
19 
20 public:
21 
29  SmartcardCertificate(std::string &id, std::string &label, std::string &serial, X509 *cert);
30 
34  virtual ~SmartcardCertificate();
35 
40  std::string getId();
41 
46  std::string getLabel();
47 
52  std::string getSerial();
53 
59 
60 private:
61 
65  X509 *cert;
66 
70  std::string id;
71 
75  std::string label;
76 
80  std::string serial;
81 
82 };
83 
84 #endif /*SMARTCARDCERTIFICATE_H_*/
Definition: SmartcardCertificate.h:17
virtual ~SmartcardCertificate()
Definition: SmartcardCertificate.cpp:11
std::string getId()
Definition: SmartcardCertificate.cpp:16
std::string getSerial()
Definition: SmartcardCertificate.cpp:26
SmartcardCertificate(std::string &id, std::string &label, std::string &serial, X509 *cert)
Definition: SmartcardCertificate.cpp:3
Certificate * getCertificate()
Definition: SmartcardCertificate.cpp:31
std::string getLabel()
Definition: SmartcardCertificate.cpp:21
Definition: Certificate.h:38