#include <SubjectKeyIdentifier.h>
SubjectKeyIdentifier ::= KeyIdentifier
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 40 of file SubjectKeyIdentifier.h.
Public Member Functions | |
CPKIFSubjectKeyIdentifier () | |
CPKIFSubjectKeyIdentifier (const bool &criticality, const CPKIFBufferPtr &ext) | |
virtual | ~CPKIFSubjectKeyIdentifier () |
const CPKIFOIDPtr | oid () const |
CPKIFBufferPtr | KeyIdentifier () const |
void | SetKeyIdentifier (CPKIFBufferPtr &) |
CPKIFBufferPtr | value () const |
Static Public Attributes | |
static char | extOID [] = "2.5.29.14" |
CPKIFSubjectKeyIdentifier::CPKIFSubjectKeyIdentifier | ( | ) |
Interface: External
CPKIFSubjectKeyIdentifier has two constructor forms. The version that takes a reference to a CACX509V3Extension 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 |
Definition at line 45 of file SubjectKeyIdentifier.cpp.
CPKIFSubjectKeyIdentifier::CPKIFSubjectKeyIdentifier | ( | const bool & | criticality, | |
const CPKIFBufferPtr & | ext | |||
) |
Interface: External
CPKIFSubjectKeyIdentifier has two constructor forms. The version that takes a reference to a CACX509V3Extension 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 108 of file SubjectKeyIdentifier.cpp.
References CACASNWRAPPER_CREATE.
CPKIFSubjectKeyIdentifier::~CPKIFSubjectKeyIdentifier | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFSubjectKeyIdentifier.
Definition at line 129 of file SubjectKeyIdentifier.cpp.
const CPKIFOIDPtr CPKIFSubjectKeyIdentifier::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 146 of file SubjectKeyIdentifier.cpp.
References extOID.
CPKIFBufferPtr CPKIFSubjectKeyIdentifier::KeyIdentifier | ( | ) | const |
Interface: External
This function returns a key identifier from a subject key identifier extension.
Definition at line 57 of file SubjectKeyIdentifier.cpp.
Referenced by operator<<().
void CPKIFSubjectKeyIdentifier::SetKeyIdentifier | ( | CPKIFBufferPtr & | skid | ) |
Interface: External
This function returns a key identifier from a subject key identifier extension.
Definition at line 68 of file SubjectKeyIdentifier.cpp.
CPKIFBufferPtr CPKIFSubjectKeyIdentifier::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 162 of file SubjectKeyIdentifier.cpp.
References CACASNWRAPPER_CREATE.
char CPKIFSubjectKeyIdentifier::extOID = "2.5.29.14" [static] |
The extOID member of each extension class provides a NULL terminated string representation of the object identifier that identifies the extension. The value defined for this class is "2.5.29.14".
Definition at line 51 of file SubjectKeyIdentifier.h.
Referenced by oid(), and CPKIFSubjectKeyIdentifierFactory::refOID().