libcryptosec
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
RevokedCertificate Class Reference

#include <RevokedCertificate.h>

Public Types

enum  ReasonCode {
  UNSPECIFIED = 0, KEY_COMPROMISE = 1, CA_COMPROMISE = 2, AFFILIATION_CHANGED = 3,
  SUPER_SEDED = 4, CESSATION_OF_OPERATION = 5, CERTIFICATE_HOLD = 6, PRIVILEGE_WITH_DRAWN = 7,
  AACOMPROMISE = 8
}
 

Public Member Functions

 RevokedCertificate ()
 
 RevokedCertificate (X509_REVOKED *revoked)
 
virtual ~RevokedCertificate ()
 
std::string getXmlEncoded ()
 
std::string getXmlEncoded (std::string tab)
 
void setCertificateSerialNumber (long certificateSerialNumber) throw (BigIntegerException)
 
void setCertificateSerialNumber (BigInteger certificateSerialNumber)
 
long getCertificateSerialNumber ()
 
BigInteger getCertificateSerialNumberBigInt ()
 
void setRevocationDate (DateTime &revocationDate)
 
DateTime getRevocationDate ()
 
void setReasonCode (RevokedCertificate::ReasonCode reasonCode)
 
RevokedCertificate::ReasonCode getReasonCode ()
 
X509_REVOKED * getX509Revoked ()
 

Static Public Member Functions

static std::string reasonCode2Name (RevokedCertificate::ReasonCode reasonCode)
 

Protected Attributes

BigInteger certificateSerialNumber
 
DateTime revocationDate
 
RevokedCertificate::ReasonCode reasonCode
 

Member Enumeration Documentation

◆ ReasonCode

Enumerator
UNSPECIFIED 
KEY_COMPROMISE 
CA_COMPROMISE 
AFFILIATION_CHANGED 
SUPER_SEDED 
CESSATION_OF_OPERATION 
CERTIFICATE_HOLD 
PRIVILEGE_WITH_DRAWN 
AACOMPROMISE 

Constructor & Destructor Documentation

◆ RevokedCertificate() [1/2]

RevokedCertificate::RevokedCertificate ( )

◆ RevokedCertificate() [2/2]

RevokedCertificate::RevokedCertificate ( X509_REVOKED *  revoked)

◆ ~RevokedCertificate()

RevokedCertificate::~RevokedCertificate ( )
virtual

Member Function Documentation

◆ getCertificateSerialNumber()

long RevokedCertificate::getCertificateSerialNumber ( )

◆ getCertificateSerialNumberBigInt()

BigInteger RevokedCertificate::getCertificateSerialNumberBigInt ( )

◆ getReasonCode()

RevokedCertificate::ReasonCode RevokedCertificate::getReasonCode ( )

◆ getRevocationDate()

DateTime RevokedCertificate::getRevocationDate ( )

◆ getX509Revoked()

X509_REVOKED * RevokedCertificate::getX509Revoked ( )

◆ getXmlEncoded() [1/2]

std::string RevokedCertificate::getXmlEncoded ( )

◆ getXmlEncoded() [2/2]

std::string RevokedCertificate::getXmlEncoded ( std::string  tab)

◆ reasonCode2Name()

std::string RevokedCertificate::reasonCode2Name ( RevokedCertificate::ReasonCode  reasonCode)
static

◆ setCertificateSerialNumber() [1/2]

void RevokedCertificate::setCertificateSerialNumber ( long  certificateSerialNumber)
throw (BigIntegerException
)

◆ setCertificateSerialNumber() [2/2]

void RevokedCertificate::setCertificateSerialNumber ( BigInteger  certificateSerialNumber)

◆ setReasonCode()

void RevokedCertificate::setReasonCode ( RevokedCertificate::ReasonCode  reasonCode)

◆ setRevocationDate()

void RevokedCertificate::setRevocationDate ( DateTime revocationDate)

Member Data Documentation

◆ certificateSerialNumber

BigInteger RevokedCertificate::certificateSerialNumber
protected

◆ reasonCode

RevokedCertificate::ReasonCode RevokedCertificate::reasonCode
protected

◆ revocationDate

DateTime RevokedCertificate::revocationDate
protected

The documentation for this class was generated from the following files: