#include <PolicyInformationSet.h>
CertificatePoliciesSyntax ::= SEQUENCE SIZE(1..MAX) OF PolicyInformation
For details on accessing extensions in a certificate or CRL, see the sections on CPKIFCertificate and CPKIFCRL.
PKIF does not provide a means of encoding extensions. This class is used to parse extensions present in encoded objects, e.g. public-key certificates.
TSP-enforcing: No
Definition at line 42 of file PolicyInformationSet.h.
Public Member Functions | |
CPKIFPolicyInformationSet () | |
CPKIFPolicyInformationSet (const bool &criticality, const CPKIFBufferPtr &ext) | |
virtual | ~CPKIFPolicyInformationSet () |
const CPKIFOIDPtr | oid () const |
CPKIFPolicyInformationListPtr | GetPolicySet () const |
void | SetPolicySet (CPKIFPolicyInformationListPtr &pol) |
CPKIFBufferPtr | value () const |
Static Public Attributes | |
static char | extOID [] = "2.5.29.32" |
CPKIFPolicyInformationSet::CPKIFPolicyInformationSet | ( | ) |
Interface: External
Default constructor
Definition at line 47 of file PolicyInformationSet.cpp.
CPKIFPolicyInformationSet::CPKIFPolicyInformationSet | ( | const bool & | criticality, | |
const CPKIFBufferPtr & | ext | |||
) |
Interface: External
This constructor is internally invoked; it will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the extension cannot be parsed.
std::bad_alloc | Interface: External |
std::bad_alloc |
Definition at line 130 of file PolicyInformationSet.cpp.
References CACASNWRAPPER_CREATE.
CPKIFPolicyInformationSet::~CPKIFPolicyInformationSet | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFPolicyInformationSet.
Definition at line 167 of file PolicyInformationSet.cpp.
const CPKIFOIDPtr CPKIFPolicyInformationSet::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 from CPKIFX509Extension.
Definition at line 184 of file PolicyInformationSet.cpp.
References extOID.
Referenced by CPKIFGeneralCertificateDetailsPanel::OnInitDialog().
CPKIFPolicyInformationListPtr CPKIFPolicyInformationSet::GetPolicySet | ( | ) | const |
Interface: External
This function returns the list of certificate policies from a certificate policies extension. Return type is a smart pointer to CPKIFPolicyInformationList object.
Definition at line 64 of file PolicyInformationSet.cpp.
Referenced by operator<<().
void CPKIFPolicyInformationSet::SetPolicySet | ( | CPKIFPolicyInformationListPtr & | polSet | ) |
Interface: External
This function sets the list of certificate policies from a certificate policies extension.
Definition at line 77 of file PolicyInformationSet.cpp.
CPKIFBufferPtr CPKIFPolicyInformationSet::value | ( | ) | const [virtual] |
Interface: External
This function returns a smart pointer to a CPKIFBuffer object containing value of the extension.
Reimplemented from CPKIFX509Extension.
Definition at line 200 of file PolicyInformationSet.cpp.
References CACASNWRAPPER_CREATE, ConvertStringToASN1OBJID(), CopyOID(), FreeList(), NEW_NEXT_AND_ADVANCE, NEW_NODE, and SET_HEAD_TAIL_INCREMENT.
char CPKIFPolicyInformationSet::extOID = "2.5.29.32" [static] |
The extOID member of each extension class provides a NULL terminated string representation of the object identifier that identifies the extension. The value defined for this class is "2.5.29.32".
Definition at line 54 of file PolicyInformationSet.h.
Referenced by oid(), and CPKIFPolicyInformationSetFactory::refOID().