#include <X509Extension.h>
TSP-enforcing: No
Definition at line 35 of file X509Extension.h.
Public Member Functions | |
CPKIFX509Extension () | |
CPKIFX509Extension (const bool &criticality, const CPKIFBufferPtr &value) | |
CPKIFX509Extension (const CPKIFOIDPtr &oid, const bool &criticality, const CPKIFBufferPtr &value) | |
virtual | ~CPKIFX509Extension () |
void | SetCriticality (bool b) |
bool | isCritical () const |
virtual const CPKIFOIDPtr | oid () const |
bool | operator== (const CPKIFX509Extension &rhs) |
virtual void | value (const CPKIFBufferPtr &value) |
virtual CPKIFBufferPtr | value () const |
CPKIFBufferPtr | Encode () |
CPKIFX509Extension::CPKIFX509Extension | ( | ) |
Interface: External
This function is the copy constructor for CPKIFX509Extension class. This function has an empty implementation.
Definition at line 45 of file X509Extension.cpp.
CPKIFX509Extension::CPKIFX509Extension | ( | const bool & | criticality, | |
const CPKIFBufferPtr & | value | |||
) |
Interface: External Constructor which takes the extension criticality as its sole parameter.
Definition at line 67 of file X509Extension.cpp.
CPKIFX509Extension::CPKIFX509Extension | ( | const CPKIFOIDPtr & | oid, | |
const bool & | criticality, | |||
const CPKIFBufferPtr & | value | |||
) |
Interface: External Constructor which takes an OID ptr, the criticality, and a buffer containing the extension data.
Definition at line 80 of file X509Extension.cpp.
CPKIFX509Extension::~CPKIFX509Extension | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFX509Extension.
Definition at line 95 of file X509Extension.cpp.
void CPKIFX509Extension::SetCriticality | ( | bool | b | ) |
SetCriticality is necessary when creating new extensions, which was not done in PKIF versions through 2.1.7.
Definition at line 156 of file X509Extension.cpp.
bool CPKIFX509Extension::isCritical | ( | ) | const |
Interface: External
This constructor creates and instance of CPKIFX509Extension based on the CACX509V3Extension parameter.
Definition at line 148 of file X509Extension.cpp.
Referenced by Encode(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().
const CPKIFOIDPtr CPKIFX509Extension::oid | ( | ) | const [virtual] |
Interface: External
This function returns a smart pointer to a CPKIFOID object containing the object identifier associated with this type of extension.
Reimplemented in CPKIFAuthorityInfoAccess, CPKIFAuthorityKeyIdentifier, CPKIFBasicConstraints, CPKIFCertificateIssuer, CPKIFCRLDistributionPoints, CPKIFCRLNumber, CPKIFCRLReason, CPKIFCRLStreamIdentifier, CPKIFDeltaCRLIndicator, CPKIFExtendedKeyUsage, CPKIFFreshestCRL, CPKIFHoldInstructionCode, CPKIFInhibitAnyPolicy, CPKIFInvalidityDate, CPKIFIssuerAltName, CPKIFIssuingDistributionPoint, CPKIFKeyUsage, CPKIFNameConstraints, CPKIFPolicyConstraints, CPKIFPolicyInformationSet, CPKIFPolicyMappings, CPKIFPrivateKeyUsage, CPKIFSubjectAltName, CPKIFSubjectInfoAccess, and CPKIFSubjectKeyIdentifier.
Definition at line 169 of file X509Extension.cpp.
Referenced by Encode(), and operator==().
bool CPKIFX509Extension::operator== | ( | const CPKIFX509Extension & | rhs | ) |
Interface: External
This function returns true if the extension passed via the rhs parameter is of the same type, e.g. the values returned by a call to oid match.
rhs | [in] Reference to an instance of CPKIFX509Extension to compare |
Definition at line 111 of file X509Extension.cpp.
References oid().
void CPKIFX509Extension::value | ( | const CPKIFBufferPtr & | value | ) | [virtual] |
Interface: External
This function sets the extension value
value | [in]A smart pointer to CPKIFBuffer |
Definition at line 192 of file X509Extension.cpp.
Referenced by operator<<().
CPKIFBufferPtr CPKIFX509Extension::value | ( | ) | const [virtual] |
Interface: External
This function returns a smart pointer to a CPKIFBuffer object containing the encoded value of an extension object.
Reimplemented in CPKIFAuthorityInfoAccess, CPKIFAuthorityKeyIdentifier, CPKIFBasicConstraints, CPKIFCertificateIssuer, CPKIFCRLDistributionPoints, CPKIFCRLNumber, CPKIFCRLReason, CPKIFCRLStreamIdentifier, CPKIFDeltaCRLIndicator, CPKIFExtendedKeyUsage, CPKIFFreshestCRL, CPKIFHoldInstructionCode, CPKIFInhibitAnyPolicy, CPKIFInvalidityDate, CPKIFIssuerAltName, CPKIFIssuingDistributionPoint, CPKIFKeyUsage, CPKIFNameConstraints, CPKIFPolicyConstraints, CPKIFPolicyInformationSet, CPKIFPolicyMappings, CPKIFPrivateKeyUsage, CPKIFSubjectAltName, CPKIFSubjectInfoAccess, and CPKIFSubjectKeyIdentifier.
Definition at line 181 of file X509Extension.cpp.
Referenced by Encode().
CPKIFBufferPtr CPKIFX509Extension::Encode | ( | ) |
Interface: External
This function is used to encode the extension.
Definition at line 205 of file X509Extension.cpp.
References CACASNWRAPPER_CREATE, ConvertStringToASN1OBJID(), isCritical(), oid(), and value().