CPKIFX509Extension Class Reference

#include <X509Extension.h>

Inheritance diagram for CPKIFX509Extension:

Inheritance graph
[legend]
Collaboration diagram for CPKIFX509Extension:

Collaboration graph
[legend]

List of all members.


Detailed Description

The CPKIFX509Extension class serves as the base class for all classes implementing access to X.509 extensions as well as an implementation for handling unrecognized extensions.

TSP-enforcing: No

Definition at line 35 of file X509Extension.h.


Public Member Functions

 CPKIFX509Extension ()
 CPKIFX509Extension (const bool &criticality, const CPKIFBufferPtr &value)
 CPKIFX509Extension (const CPKIFOIDPtr &oid, const bool &criticality, const CPKIFBufferPtr &value)
virtual ~CPKIFX509Extension ()
void SetCriticality (bool b)
bool isCritical () const
virtual const CPKIFOIDPtr oid () const
bool operator== (const CPKIFX509Extension &rhs)
virtual void value (const CPKIFBufferPtr &value)
virtual CPKIFBufferPtr value () const
CPKIFBufferPtr Encode ()

Constructor & Destructor Documentation

CPKIFX509Extension::CPKIFX509Extension (  ) 

Interface: External

This function is the copy constructor for CPKIFX509Extension class. This function has an empty implementation.

Returns:
None

Definition at line 45 of file X509Extension.cpp.

CPKIFX509Extension::CPKIFX509Extension ( const bool &  criticality,
const CPKIFBufferPtr &  value 
)

Interface: External Constructor which takes the extension criticality as its sole parameter.

Returns:
None

Definition at line 67 of file X509Extension.cpp.

CPKIFX509Extension::CPKIFX509Extension ( const CPKIFOIDPtr &  oid,
const bool &  criticality,
const CPKIFBufferPtr &  value 
)

Interface: External Constructor which takes an OID ptr, the criticality, and a buffer containing the extension data.

Returns:
None

Definition at line 80 of file X509Extension.cpp.

CPKIFX509Extension::~CPKIFX509Extension (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFX509Extension.

Returns:
None

Definition at line 95 of file X509Extension.cpp.


Member Function Documentation

void CPKIFX509Extension::SetCriticality ( bool  b  ) 

SetCriticality is necessary when creating new extensions, which was not done in PKIF versions through 2.1.7.

Definition at line 156 of file X509Extension.cpp.

bool CPKIFX509Extension::isCritical (  )  const

Interface: External

This constructor creates and instance of CPKIFX509Extension based on the CACX509V3Extension parameter.

Returns:
None Interface: External
This function returns a Boolean indicating if the criticality flag of the extension object is set.

Returns:
A Boolean indicating if the criticality flag of the extension object is set.

Definition at line 148 of file X509Extension.cpp.

Referenced by Encode(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().

const CPKIFOIDPtr CPKIFX509Extension::oid (  )  const [virtual]

bool CPKIFX509Extension::operator== ( const CPKIFX509Extension rhs  ) 

Interface: External

This function returns true if the extension passed via the rhs parameter is of the same type, e.g. the values returned by a call to oid match.

Returns:
True if the extension passed via the rhs parameter is of the same type, e.g. the values returned by a call to oid match.
Parameters:
rhs  [in] Reference to an instance of CPKIFX509Extension to compare

Definition at line 111 of file X509Extension.cpp.

References oid().

void CPKIFX509Extension::value ( const CPKIFBufferPtr &  value  )  [virtual]

Interface: External

This function sets the extension value

Returns:
None
Parameters:
value  [in]A smart pointer to CPKIFBuffer

Definition at line 192 of file X509Extension.cpp.

Referenced by operator<<().

CPKIFBufferPtr CPKIFX509Extension::value (  )  const [virtual]

CPKIFBufferPtr CPKIFX509Extension::Encode (  ) 

Interface: External

This function is used to encode the extension.

Returns:
CPKIFBufferPtr containing the encoded extension

Definition at line 205 of file X509Extension.cpp.

References CACASNWRAPPER_CREATE, ConvertStringToASN1OBJID(), isCritical(), oid(), and value().


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

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