#include <IPKIFHasExtensions.h>
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 |
IPKIFHasExtensions::~IPKIFHasExtensions | ( | ) | [virtual] |
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).
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.
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] |
Implemented in CPKIFTrustRoot, CPKIFResponseData, CPKIFSingleResponse, CPKIFTBSRequest, CPKIFCapiCRLEntry, CPKIFCapiCRL, CPKIFCertificate, CPKIFCRL, CPKIFCRLEntry, CPKIFCertReply, CPKIFCVRequest, CPKIFCVResponse, CPKIFQuery, CPKIFTimeStampRequest, and CPKIFTSTInfo.
Referenced by GetExtension().
virtual void IPKIFHasExtensions::GetEncodedExtensions | ( | CPKIFBufferPtr & | buf | ) | [pure virtual] |
Implemented in CPKIFTrustRoot, CPKIFResponseData, CPKIFSingleResponse, CPKIFTBSRequest, CPKIFCapiCRLEntry, CPKIFCapiCRL, CPKIFCertificate, CPKIFCRL, CPKIFCRLEntry, CPKIFCertReply, CPKIFCVRequest, CPKIFCVResponse, CPKIFQuery, CPKIFTimeStampRequest, and CPKIFTSTInfo.
Referenced by GetExtensions().