libcryptosec
include
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
"
11
#include <
libcryptosec/certificate/Certificate.h
>
12
#include <
libcryptosec/exception/EncodeException.h
>
13
#include <
libcryptosec/exception/Pkcs7Exception.h
>
14
31
class
Pkcs7
32
{
33
34
public
:
35
43
enum
Type
44
{
45
SIGNED
,
46
ENVELOPED
,
47
CERTIFICATE_BUNDLE
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_*/
EncodeException.h
Pkcs7::ENVELOPED
Definition:
Pkcs7.h:46
Pkcs7::getType
virtual Pkcs7::Type getType()=0
Pkcs7
Definition:
Pkcs7.h:31
Certificate.h
Pkcs7::pkcs7
PKCS7 * pkcs7
Definition:
Pkcs7.h:93
ByteArray.h
Pkcs7::getDerEncoded
ByteArray getDerEncoded()
Definition:
Pkcs7.cpp:47
ByteArray
Classe usada para transportar dados binários pelo sistema. Pode ser usada para conversão de texto em ...
Definition:
ByteArray.h:24
Pkcs7Exception.h
Pkcs7::Pkcs7
Pkcs7(PKCS7 *pkcs7)
Definition:
Pkcs7.cpp:3
EncodeException
Definition:
EncodeException.h:8
Pkcs7::SIGNED
Definition:
Pkcs7.h:45
Pkcs7::Type
Type
Definition:
Pkcs7.h:43
Pkcs7::~Pkcs7
virtual ~Pkcs7()
Definition:
Pkcs7.cpp:8
Pkcs7::getPemEncoded
std::string getPemEncoded()
Definition:
Pkcs7.cpp:16
Pkcs7::CERTIFICATE_BUNDLE
Definition:
Pkcs7.h:47
Generated by
1.8.13