IPKIFHasExtensions Class Reference

#include <IPKIFHasExtensions.h>

Inheritance diagram for IPKIFHasExtensions:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class serves as an interface to be implemented by objects that have extensions fields. Objects "should" be able to use the base class implementation of "GetExtensions" and the templated GetExtension(). However, "GetEncodedExtensions" and the non-templated GetExtension() must be implemented by derived classes.

TSP-enforcing: No

Definition at line 29 of file IPKIFHasExtensions.h.


Public Member Functions

virtual ~IPKIFHasExtensions ()
template<typename T>
boost::shared_ptr< T > GetExtension ()
virtual void GetExtensions (IPKIFParseExtensions *m, std::vector< CPKIFX509ExtensionPtr > &exts)
virtual void GetExtensionByOID (const CPKIFOID &oid, CPKIFX509ExtensionPtr &ref)=0
virtual void GetEncodedExtensions (CPKIFBufferPtr &buf)=0

Constructor & Destructor Documentation

IPKIFHasExtensions::~IPKIFHasExtensions (  )  [virtual]

Interface: External

Destructor

Returns:
None

Definition at line 25 of file IPKIFHasExtensions.cpp.


Member Function Documentation

template<typename T>
boost::shared_ptr< T > IPKIFHasExtensions::GetExtension (  )  [inline]

this function should be used to retrieve extensions in a type-safe manner you pass a type as a param and the function returns a default smart pointer to that type Interface: External

This function is used to retrieve an extension from an IPKIFHasExtensions object. It takes the type of extension sought by an application as a template parameter and returns a smart pointer to that type (containing a NULL pointer if the extension was not found).

Returns:
A smart pointer to the appropriate extension

Reimplemented in CPKIFTrustRoot, CPKIFCertReply, CPKIFCVRequest, CPKIFCVResponse, CPKIFQuery, CPKIFTimeStampRequest, and CPKIFTSTInfo.

Definition at line 61 of file IPKIFHasExtensions.h.

References ASN1_DECODE_ERROR, GetExtensionByOID(), and TOOLKIT_ASN.

Referenced by GetCertsFromIssuerAltName().

void IPKIFHasExtensions::GetExtensions ( IPKIFParseExtensions m,
std::vector< CPKIFX509ExtensionPtr > &  exts 
) [virtual]

Interface: External

This function parses the objects extensions using the IPKIFMediator parameter, and populates the vector parameter with a pointers to the parsed Extension objects.

Returns:
None
Parameters:
m  [in] Mediator used for ex. parsing
exts  [out] vector to be populatod w/ ext. ptrs

Reimplemented in CPKIFTrustRoot.

Definition at line 38 of file IPKIFHasExtensions.cpp.

References GetEncodedExtensions(), and IPKIFParseExtensions::ParseExtensions().

virtual void IPKIFHasExtensions::GetExtensionByOID ( const CPKIFOID oid,
CPKIFX509ExtensionPtr &  ref 
) [pure virtual]

virtual void IPKIFHasExtensions::GetEncodedExtensions ( CPKIFBufferPtr &  buf  )  [pure virtual]


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

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