CPKIFIssuerAltName Class Reference

#include <IssuerAltName.h>

Inheritance diagram for CPKIFIssuerAltName:

Inheritance graph
[legend]
Collaboration diagram for CPKIFIssuerAltName:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFIssuerAltName provides access to information found in an issuer alternate name extension. Issuer alternate name extensions are simply a sequence of GeneralName, as shown below:
GeneralNames ::= SEQUENCE  SIZE(1..MAX) OF GeneralName

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 IssuerAltName.h.


Public Member Functions

 CPKIFIssuerAltName ()
 CPKIFIssuerAltName (const bool &criticality, const CPKIFBufferPtr &ext)
virtual ~CPKIFIssuerAltName ()
const CPKIFOIDPtr oid () const
void GeneralNames (CPKIFGeneralNameList &genNames) const
CPKIFBufferPtr value () const

Static Public Attributes

static char extOID [] = "2.5.29.18"

Constructor & Destructor Documentation

CPKIFIssuerAltName::CPKIFIssuerAltName (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 38 of file IssuerAltName.cpp.

CPKIFIssuerAltName::CPKIFIssuerAltName ( const bool &  criticality,
const CPKIFBufferPtr &  ext 
)

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 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 

Definition at line 80 of file IssuerAltName.cpp.

References CACASNWRAPPER_CREATE.

CPKIFIssuerAltName::~CPKIFIssuerAltName (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFIssuerAltName.

Returns:
None

Definition at line 138 of file IssuerAltName.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFIssuerAltName::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 154 of file IssuerAltName.cpp.

References extOID.

void CPKIFIssuerAltName::GeneralNames ( CPKIFGeneralNameList genNames  )  const

Interface: External

This function returns a list of general names from an issuer alternative name extension.

Returns:
None
Parameters:
genNames  A reference to CPKIFGeneralNameList object containing a list of general names from an issuer alternative name extension.

Definition at line 118 of file IssuerAltName.cpp.

Referenced by CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().

CPKIFBufferPtr CPKIFIssuerAltName::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 170 of file IssuerAltName.cpp.


Member Data Documentation

char CPKIFIssuerAltName::extOID = "2.5.29.18" [static]

Definition at line 50 of file IssuerAltName.h.

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


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

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