#include <PolicyMappings.h>
PolicyMappingsSyntax ::= SEQUENCE SIZE(1..MAX) OF PolicyMapSyntax
PolicyMapSyntax ::= SEQUENCE { issuerDomainPolicy CertPolicyId, subjectDomainPolicy CertPolicyId }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 46 of file PolicyMappings.h.
Public Member Functions | |
CPKIFPolicyMappings () | |
CPKIFPolicyMappings (const bool &criticality, const CPKIFBufferPtr &ext) | |
virtual | ~CPKIFPolicyMappings () |
const CPKIFOIDPtr | oid () const |
CPKIFPolicyMappingListPtr | PolicyMappings () const |
CPKIFBufferPtr | value () const |
Static Public Attributes | |
static char | extOID [] = "2.5.29.33" |
CPKIFPolicyMappings::CPKIFPolicyMappings | ( | ) |
Interface: External
Default constructor
Definition at line 41 of file PolicyMappings.cpp.
CPKIFPolicyMappings::CPKIFPolicyMappings | ( | 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 88 of file PolicyMappings.cpp.
References CACASNWRAPPER_CREATE.
CPKIFPolicyMappings::~CPKIFPolicyMappings | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFPolicyMappings.
Definition at line 136 of file PolicyMappings.cpp.
const CPKIFOIDPtr CPKIFPolicyMappings::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 152 of file PolicyMappings.cpp.
References extOID.
CPKIFPolicyMappingListPtr CPKIFPolicyMappings::PolicyMappings | ( | ) | const |
Interface: External
This function returns a list of policy mapping objects from a policy mappings extension.
Definition at line 125 of file PolicyMappings.cpp.
Referenced by operator<<().
CPKIFBufferPtr CPKIFPolicyMappings::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 167 of file PolicyMappings.cpp.
char CPKIFPolicyMappings::extOID = "2.5.29.33" [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.33".
Definition at line 57 of file PolicyMappings.h.
Referenced by oid(), and CPKIFPolicyMappingsFactory::refOID().