#include <NameConstraints.h>
NameConstraintsSyntax ::= SEQUENCE { permittedSubtrees [0] GeneralSubtrees OPTIONAL, excludedSubtrees [1] GeneralSubtrees OPTIONAL }
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 45 of file NameConstraints.h.
Public Member Functions | |
CPKIFNameConstraints () | |
CPKIFNameConstraints (const bool &criticality, const CPKIFBufferPtr &ext) | |
virtual | ~CPKIFNameConstraints () |
const CPKIFOIDPtr | oid () const |
CPKIFGeneralSubtreeListPtr | GetPermitted () const |
CPKIFGeneralSubtreeListPtr | GetExcluded () const |
void | SetPermitted (CPKIFGeneralSubtreeListPtr &) |
void | SetExcluded (CPKIFGeneralSubtreeListPtr &) |
CPKIFBufferPtr | value () const |
Static Public Attributes | |
static char | extOID [] = "2.5.29.30" |
CPKIFNameConstraints::CPKIFNameConstraints | ( | ) |
Interface: External
Default constructor
Definition at line 59 of file NameConstraints.cpp.
CPKIFNameConstraints::CPKIFNameConstraints | ( | const bool & | criticality, | |
const CPKIFBufferPtr & | ext | |||
) |
Interface: External
This constuctor is internally invoked; this version will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the extension cannot be parsed.
Definition at line 162 of file NameConstraints.cpp.
References CACASNWRAPPER_CREATE.
CPKIFNameConstraints::~CPKIFNameConstraints | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFNameConstraints.
Definition at line 217 of file NameConstraints.cpp.
const CPKIFOIDPtr CPKIFNameConstraints::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 232 of file NameConstraints.cpp.
References extOID.
CPKIFGeneralSubtreeListPtr CPKIFNameConstraints::GetPermitted | ( | ) | const |
Interface: External
This function returns the permitted subtree from a name constraints extension.
Definition at line 70 of file NameConstraints.cpp.
Referenced by operator<<().
CPKIFGeneralSubtreeListPtr CPKIFNameConstraints::GetExcluded | ( | ) | const |
Interface: External
This function returns the excluded subtree from a name constraints extension.
Definition at line 93 of file NameConstraints.cpp.
Referenced by operator<<().
void CPKIFNameConstraints::SetPermitted | ( | CPKIFGeneralSubtreeListPtr & | perm | ) |
Interface: External
This function sets the permitted subtree the name constraints extension.
Definition at line 81 of file NameConstraints.cpp.
void CPKIFNameConstraints::SetExcluded | ( | CPKIFGeneralSubtreeListPtr & | excl | ) |
Interface: External
This function sets the excluded subtree from the name constraints extension.
Definition at line 104 of file NameConstraints.cpp.
CPKIFBufferPtr CPKIFNameConstraints::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 248 of file NameConstraints.cpp.
References CACASNWRAPPER_CREATE, DecIP(), CPKIFGeneralName::DIRECTORYNAME, CPKIFGeneralName::DNSNAME, CPKIFGeneralName::IPADDRESS, NEW_NEXT_AND_ADVANCE, NEW_NODE, CPKIFGeneralName::RFC822, SET_HEAD_TAIL_INCREMENT, and CPKIFGeneralName::URI.
char CPKIFNameConstraints::extOID = "2.5.29.30" [static] |
Definition at line 53 of file NameConstraints.h.
Referenced by oid(), and CPKIFNameConstraintsFactory::refOID().