CPKIFDistributionPointName Class Reference

#include <DistributionPointName.h>

Collaboration diagram for CPKIFDistributionPointName:

Collaboration graph
[legend]

List of all members.


Detailed Description

The CPKIFDistributionPointName class provides access to DistributionPointName objects. PKIF does not currently support relative-to-issuer distribution point names.

TSP-enforcing: No

Definition at line 36 of file DistributionPointName.h.


Public Member Functions

 CPKIFDistributionPointName ()
 CPKIFDistributionPointName (const CPKIFBufferPtr &name)
virtual ~CPKIFDistributionPointName ()
bool operator== (const CPKIFDistributionPointName &name)
void FullName (CPKIFGeneralNameList &genNames) const
bool NameRelativeToIssuerPresent () const
CPKIFNamePtr GetRelativeNameAsFullName (CPKIFNamePtr &issuerName)

Constructor & Destructor Documentation

CPKIFDistributionPointName::CPKIFDistributionPointName (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 38 of file DistributionPointName.cpp.

CPKIFDistributionPointName::CPKIFDistributionPointName ( const CPKIFBufferPtr &  name  ) 

Interface: External

This constructor 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
Exceptions:
std::bad_alloc 
Parameters:
name  [in] A reference to a smart pointer to CPKIFBuffer object containing the DistributionPointName

Definition at line 74 of file DistributionPointName.cpp.

References CACASNWRAPPER_CREATE, NEW_NEXT_AND_ADVANCE, and NEW_NODE.

CPKIFDistributionPointName::~CPKIFDistributionPointName (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFDistributionPointName.

Returns:
None

Definition at line 187 of file DistributionPointName.cpp.


Member Function Documentation

bool CPKIFDistributionPointName::operator== ( const CPKIFDistributionPointName name  ) 

Interface: External

This function returns true if the CPKIFDistributionPointName passed via the name parameter matches the CPKIFDistributionPointName on which this function was invoked and returns false otherwise. A match occurs if a GeneralName in the FullName field of the name parameter is present in the FullName field of the object on which this comparison operator is invoked.

Returns:
True if the CPKIFDistributionPointNames matches, flase otherwise

Definition at line 205 of file DistributionPointName.cpp.

References FullName(), and GeneralNamesCompare::SetGeneralNames().

void CPKIFDistributionPointName::FullName ( CPKIFGeneralNameList genNames  )  const

Interface: External

This function returns a list of general names from the FullName component of a DistributionPointName. If the FullName field is not present or is empty, the genNames list will be empty following a call to this function.

Returns:
None
Parameters:
genNames  [out] Reference to a list of smart pointers to CPKIFGeneralName objects to receive the GeneralNames from the DistributionPointName

Definition at line 238 of file DistributionPointName.cpp.

Referenced by operator==().

bool CPKIFDistributionPointName::NameRelativeToIssuerPresent (  )  const

Interface: External

This function returns true if the DistributionPointName object includes a relative-to-issuer component.

Returns:
True if the DistributionPointName object includes a relative-to-issuer component.

Definition at line 226 of file DistributionPointName.cpp.

CPKIFNamePtr CPKIFDistributionPointName::GetRelativeNameAsFullName ( CPKIFNamePtr &  issuerName  ) 

Interface: External

This function returns a relative name as a full name.

Returns:
A smart poiter to CPKIFName object

Definition at line 271 of file DistributionPointName.cpp.

References NEW_NEXT_AND_ADVANCE, and NEW_NODE.


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

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