#include <ResponseData.h>
TSP-enforcing: No
Definition at line 28 of file ResponseData.h.
Public Member Functions | |
CPKIFResponseData (void) | |
CPKIFResponseData (const CPKIFBufferPtr &responseData) | |
virtual | ~CPKIFResponseData (void) |
int | GetVersion () const |
CPKIFResponderIDPtr | GetResponderID () const |
void | SetResponderID (CPKIFResponderIDPtr &rid) |
CPKIFTimePtr | GetProducedAt () const |
void | SetProducedAt (CPKIFTimePtr &pa) |
void | GetResponses (CPKIFSingleResponseList &srs) |
void | AddResponse (CPKIFSingleResponsePtr &sr) |
CPKIFBufferPtr | toBeSigned () |
void | GetExtensionByOID (const CPKIFOID &oid, CPKIFX509ExtensionPtr &ref) |
void | GetEncodedExtensions (CPKIFBufferPtr &buf) |
bool | AreThereAnyUnprocessedCriticalExtensions (std::vector< CPKIFX509ExtensionPtr > &processedExts) |
CPKIFResponseData::CPKIFResponseData | ( | void | ) |
Interface: External
Default constructor
Definition at line 75 of file ResponseData.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.
CPKIFResponseData::CPKIFResponseData | ( | const CPKIFBufferPtr & | responseData | ) |
Interface: External
This function isused to create and initialize CPKIFResponseData objects. This constructor takes a ASN1OpenType parameter is used internally by PKIF when parsing OCSP objects. It is not used by applications.
responseData | [in] A reference to a smart pointer to CPKIFBuffer object that contains ResponseData |
Definition at line 92 of file ResponseData.cpp.
References CACASNWRAPPER_CREATE, CPKIFTime, LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.
CPKIFResponseData::~CPKIFResponseData | ( | void | ) | [virtual] |
Interface: External
This function destroys CPKIFResponseData objects
Definition at line 147 of file ResponseData.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.
int CPKIFResponseData::GetVersion | ( | ) | const |
this function is for use when retrieving an extension for which no proper class exists Interface: External
This function is used to get the version of a ResponseData object.
Definition at line 245 of file ResponseData.cpp.
CPKIFResponderIDPtr CPKIFResponseData::GetResponderID | ( | ) | const |
Interface: External
This function is used to get the responder ID of a ResponseData object.
Definition at line 259 of file ResponseData.cpp.
void CPKIFResponseData::SetResponderID | ( | CPKIFResponderIDPtr & | rid | ) |
Interface: External
This function is used to set the responder ID of a ResponseData object.
rid | [in] Reference to a smart pointer to a CPKIFResponderID object |
Definition at line 270 of file ResponseData.cpp.
CPKIFTimePtr CPKIFResponseData::GetProducedAt | ( | ) | const |
Interface: External
This function is used to get the produced at time of a ResponseData object.
Definition at line 285 of file ResponseData.cpp.
void CPKIFResponseData::SetProducedAt | ( | CPKIFTimePtr & | pa | ) |
Interface: External
This function is used to set the produced at time of a ResponseData object.
pa | [in] Reference to a smart pointer to a CPKIFTime object containing the time to use for the ProducedAt field in the ResponseData object |
Definition at line 296 of file ResponseData.cpp.
void CPKIFResponseData::GetResponses | ( | CPKIFSingleResponseList & | srs | ) |
Interface: External
This function is used to get the responses contained by a ResponseData object.
srs | [in] Reference to a CPKIFSingleResponseList object to receive the list of SingleReponse objects associated with a ResponseData object |
Definition at line 311 of file ResponseData.cpp.
void CPKIFResponseData::AddResponse | ( | CPKIFSingleResponsePtr & | sr | ) |
Interface: External
This function is used to add the responses contained by a ResponseData object.
sr | [in] Reference to a smart pointer to a CPKIFSingleReponse object containing a SingleResponse object to add to the list of SingleResponse objects contained by a ResponseData object |
Definition at line 325 of file ResponseData.cpp.
CPKIFBufferPtr CPKIFResponseData::toBeSigned | ( | ) |
Interface: External
This function returns a buffer contaning the data that was signed.
Definition at line 339 of file ResponseData.cpp.
void CPKIFResponseData::GetExtensionByOID | ( | const CPKIFOID & | oid, | |
CPKIFX509ExtensionPtr & | ref | |||
) | [virtual] |
Interface: External
This function is used to retrieve an extension from a responsedata object.
CPKIFException(COMMON_INVALID_INPUT) | ||
CPKIFException(COMMON_ALREADY_INITIALIZED) |
oid | [in] Identifies the extension sought |
ref | [out] The extension (if present). |
Implements IPKIFHasExtensions.
Definition at line 387 of file ResponseData.cpp.
void CPKIFResponseData::GetEncodedExtensions | ( | CPKIFBufferPtr & | buf | ) | [virtual] |
Interface: External
This function returns a smart pointer to CPKIFBuffer object which will contain the encoded extension
buf | [out] A reference to a smart pointer to CPKIFBuffer object which will contain the encoded extension |
Implements IPKIFHasExtensions.
Definition at line 351 of file ResponseData.cpp.
References CACASNWRAPPER_CREATE, and data.
bool CPKIFResponseData::AreThereAnyUnprocessedCriticalExtensions | ( | std::vector< CPKIFX509ExtensionPtr > & | processedExts | ) |
Interface: External
This function determines if a ResponseData object holds any unprocessed critical extensions.
processedExts | [in] Reference to a vector containing smart pointers to CPKIFX509Extension objects that have been processed in some application context |
Definition at line 186 of file ResponseData.cpp.
References LOG_STRING_DEBUG, ExtensionsMatch::SetRHS(), and TOOLKIT_OCSP_ASN.