CPKIFNameConstraints Class Reference

#include <NameConstraints.h>

Inheritance diagram for CPKIFNameConstraints:

Inheritance graph
[legend]
Collaboration diagram for CPKIFNameConstraints:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFNameConstraints provides access to information found in a name constraints extension. The ASN.1 definition used by PKIF is given below:

 
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"

Constructor & Destructor Documentation

CPKIFNameConstraints::CPKIFNameConstraints (  ) 

Interface: External

Default constructor

Returns:
None

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.

Returns:
None 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.

Returns:
None

Definition at line 162 of file NameConstraints.cpp.

References CACASNWRAPPER_CREATE.

CPKIFNameConstraints::~CPKIFNameConstraints (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFNameConstraints.

Returns:
None

Definition at line 217 of file NameConstraints.cpp.


Member Function Documentation

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.

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.

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.

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.

Returns:
None

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.

Returns:
None

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.

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.


Member Data Documentation

char CPKIFNameConstraints::extOID = "2.5.29.30" [static]

Definition at line 53 of file NameConstraints.h.

Referenced by oid(), and CPKIFNameConstraintsFactory::refOID().


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

Generated on Mon Nov 15 11:20:26 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6