libcryptosec
Pkcs7.h
Go to the documentation of this file.
1 #ifndef PKCS7_H_
2 #define PKCS7_H_
3 
4 #include <openssl/pem.h>
5 #include <openssl/pkcs7.h>
6 
7 #include <string>
8 #include <vector>
9 
10 #include "ByteArray.h"
14 
31 class Pkcs7
32 {
33 
34 public:
35 
43  enum Type
44  {
48  };
49 
56  Pkcs7(PKCS7 *pkcs7);
57 
62  virtual ~Pkcs7();
63 
70  virtual Pkcs7::Type getType() = 0;
71 
78  std::string getPemEncoded() throw (EncodeException);
79 
86  ByteArray getDerEncoded() throw (EncodeException);
87 
88 protected:
89 
93  PKCS7 *pkcs7;
94 
95 };
96 
97 #endif /*PKCS7_H_*/
Definition: Pkcs7.h:46
virtual Pkcs7::Type getType()=0
Definition: Pkcs7.h:31
PKCS7 * pkcs7
Definition: Pkcs7.h:93
ByteArray getDerEncoded()
Definition: Pkcs7.cpp:47
Classe usada para transportar dados binários pelo sistema. Pode ser usada para conversão de texto em ...
Definition: ByteArray.h:24
Pkcs7(PKCS7 *pkcs7)
Definition: Pkcs7.cpp:3
Definition: EncodeException.h:8
Definition: Pkcs7.h:45
Type
Definition: Pkcs7.h:43
virtual ~Pkcs7()
Definition: Pkcs7.cpp:8
std::string getPemEncoded()
Definition: Pkcs7.cpp:16
Definition: Pkcs7.h:47