CPKIFSubjectAltName Class Reference

#include <SubjectAltName.h>

Inheritance diagram for CPKIFSubjectAltName:

Inheritance graph
[legend]
Collaboration diagram for CPKIFSubjectAltName:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFSubjectAltName provides access to information found in a subject alternate name extension. Subject 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: Yes

Definition at line 43 of file SubjectAltName.h.


Public Member Functions

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

Static Public Attributes

static char extOID [] = "2.5.29.17"

Constructor & Destructor Documentation

CPKIFSubjectAltName::CPKIFSubjectAltName (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 41 of file SubjectAltName.cpp.

CPKIFSubjectAltName::CPKIFSubjectAltName ( 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 83 of file SubjectAltName.cpp.

References CACASNWRAPPER_CREATE.

CPKIFSubjectAltName::~CPKIFSubjectAltName (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFSubjectAltName.

Returns:
None

Definition at line 145 of file SubjectAltName.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFSubjectAltName::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 160 of file SubjectAltName.cpp.

References extOID.

void CPKIFSubjectAltName::GeneralNames ( CPKIFGeneralNameList genNames  )  const

Interface: External

This function returns a list of general names from a subject alternative name extension. The list passed via the genNames parameter is emptied when this function is called. Content present in the list when this function is called may be lost.

Returns:
A list of general names from a subject alternative name extension.
Parameters:
genNames  [out] Reference to a CPKIFGeneralNameList object to receive

Definition at line 125 of file SubjectAltName.cpp.

Referenced by operator<<().

CPKIFBufferPtr CPKIFSubjectAltName::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 175 of file SubjectAltName.cpp.


Member Data Documentation

char CPKIFSubjectAltName::extOID = "2.5.29.17" [static]

Definition at line 51 of file SubjectAltName.h.

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


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

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