#include <SubjectAltName.h>
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" |
CPKIFSubjectAltName::CPKIFSubjectAltName | ( | ) |
Interface: External
Default constructor
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.
std::bad_alloc | Interface: External |
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.
Definition at line 145 of file SubjectAltName.cpp.
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.
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.
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.
Reimplemented from CPKIFX509Extension.
Definition at line 175 of file SubjectAltName.cpp.
char CPKIFSubjectAltName::extOID = "2.5.29.17" [static] |
Definition at line 51 of file SubjectAltName.h.
Referenced by oid(), and CPKIFSubjectAltNameFactory::refOID().