CPKIFSubjectKeyIdentifier Class Reference

#include <SubjectKeyIdentifier.h>

Inheritance diagram for CPKIFSubjectKeyIdentifier:

Inheritance graph
[legend]
Collaboration diagram for CPKIFSubjectKeyIdentifier:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFSubjectKeyIdentifier provides access to information found in a subject key identifier extension. The ASN.1 definition used by PKIF is given below:

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"

Constructor & Destructor Documentation

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.

Returns:
None
Exceptions:
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.

Returns:
None
Exceptions:
std::bad_alloc 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.

Returns:
None
Exceptions:
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.

Returns:
None

Definition at line 129 of file SubjectKeyIdentifier.cpp.


Member Function Documentation

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.

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.

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.

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.

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.


Member Data Documentation

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().


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

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