libcryptosec
RevokedCertificate.h
Go to the documentation of this file.
1 #ifndef REVOKEDCERTIFICATE_H_
2 #define REVOKEDCERTIFICATE_H_
3 
4 #include <openssl/x509.h>
5 #include <openssl/x509v3.h>
6 
8 #include <libcryptosec/Base64.h>
9 
11 
13 {
14 public:
16  {
26  };
28  RevokedCertificate(X509_REVOKED *revoked);
29  virtual ~RevokedCertificate();
30  std::string getXmlEncoded();
31  std::string getXmlEncoded(std::string tab);
40  X509_REVOKED* getX509Revoked();
42 protected:
46 };
47 
48 #endif /*REVOKEDCERTIFICATE_H_*/
long getCertificateSerialNumber()
Definition: RevokedCertificate.cpp:79
Classe usada para representar números grandes. A limitação do tamanho do número depende da memória di...
Definition: BigInteger.h:23
DateTime getRevocationDate()
Definition: RevokedCertificate.cpp:94
Implementa a representação da data. É utilizada em certificados, LCRs. Utiliza o formato epoch (time_...
Definition: DateTime.h:27
RevokedCertificate::ReasonCode reasonCode
Definition: RevokedCertificate.h:45
X509_REVOKED * getX509Revoked()
Definition: RevokedCertificate.cpp:109
static std::string reasonCode2Name(RevokedCertificate::ReasonCode reasonCode)
Definition: RevokedCertificate.cpp:129
Definition: RevokedCertificate.h:24
std::string getXmlEncoded()
Definition: RevokedCertificate.cpp:48
Definition: RevokedCertificate.h:17
ReasonCode
Definition: RevokedCertificate.h:15
void setCertificateSerialNumber(long certificateSerialNumber)
Definition: RevokedCertificate.cpp:68
BigInteger certificateSerialNumber
Definition: RevokedCertificate.h:43
Definition: RevokedCertificate.h:22
Definition: RevokedCertificate.h:25
DateTime revocationDate
Definition: RevokedCertificate.h:44
void setRevocationDate(DateTime &revocationDate)
Definition: RevokedCertificate.cpp:89
Definition: RevokedCertificate.h:19
RevokedCertificate::ReasonCode getReasonCode()
Definition: RevokedCertificate.cpp:104
Definition: RevokedCertificate.h:21
Definition: BigIntegerException.h:7
virtual ~RevokedCertificate()
Definition: RevokedCertificate.cpp:44
void setReasonCode(RevokedCertificate::ReasonCode reasonCode)
Definition: RevokedCertificate.cpp:99
RevokedCertificate()
Definition: RevokedCertificate.cpp:3
Definition: RevokedCertificate.h:23
Definition: RevokedCertificate.h:20
Definition: RevokedCertificate.h:18
Definition: RevokedCertificate.h:12
BigInteger getCertificateSerialNumberBigInt()
Definition: RevokedCertificate.cpp:84