#include <OCSPRequest.h>
OCSPRequest ::= SEQUENCE { tbsRequest ANY, optionalSignature [0] EXPLICIT Signature OPTIONAL }
TSP-enforcing: No
Definition at line 37 of file OCSPRequest.h.
Public Member Functions | |
CPKIFOCSPRequest () | |
~CPKIFOCSPRequest () | |
void | SetRequest (CPKIFTBSRequestPtr &request, CPKIFCredentialPtr &cred, IPKIFMediator *cm=NULL) |
CPKIFTBSRequestPtr | GetRequest () const |
CPKIFBufferPtr | Encode () |
void | Decode (CPKIFBufferPtr &msg) |
Friends | |
struct | CPKIFOCSPRequestImpl |
CPKIFOCSPRequest::CPKIFOCSPRequest | ( | ) |
Interface: External
This function creates and initializes CPKIFOCSPRequest objects.
Definition at line 84 of file OCSPRequest.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.
CPKIFOCSPRequest::~CPKIFOCSPRequest | ( | ) |
Interface: External
This function destroys CPKIFOCSPRequest objects.
Definition at line 100 of file OCSPRequest.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.
void CPKIFOCSPRequest::SetRequest | ( | CPKIFTBSRequestPtr & | request, | |
CPKIFCredentialPtr & | cred, | |||
IPKIFMediator * | m = NULL | |||
) |
Interface: External
This function is used to set the request associated with an OCSPRequest object. The CPKIFCredential pointer passed to SetRequest is used to pass in a credential that will be used to sign the OCSP request. If cm parameter is not NULL it must contain IPKIFCryptoKeyIDOperations and IPKIFCryptoMisc colleagues. These colleagues will be used to sign OCSP requests.
request | [in] Reference to a smart pointer to a CPKIFTBSRequest object containing the to-be-signed request information |
cred | [in] Reference to a credential object that is used to sign the DER encoded to-be-signed request information. |
m | [in] A pointer to a mediator, which will be used to obtain cryptographic colleagues |
Definition at line 212 of file OCSPRequest.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.
Referenced by _CreateComplexOCSPRequest(), and _CreateSimpleOCSPRequest().
CPKIFTBSRequestPtr CPKIFOCSPRequest::GetRequest | ( | ) | const |
Interface: External
This function is used to get the request associated with an OCSPRequest object.If cm parameter is not NULL it must contain IPKIFCryptoKeyIDOperations and IPKIFCryptoMisc colleagues. These colleagues will be used to sign OCSP requests.
Definition at line 180 of file OCSPRequest.cpp.
References CPKIFASNWrapper< T >::Decode(), LOG_STRING_DEBUG, m_impl, and TOOLKIT_OCSP_ASN.
CPKIFBufferPtr CPKIFOCSPRequest::Encode | ( | ) |
Interface: External
This function is used to encode an OCSPRequest object.
Definition at line 236 of file OCSPRequest.cpp.
References c, CACASNWRAPPER_CREATE, ConvertStringToASN1OBJID(), CopyOID(), g_dsa, g_sha1WithRSAEncryption, LOG_STRING_DEBUG, PKIFOCSPMemoryHelper::pRequest, PKIFCRYPTO::SHA1, IPKIFCryptoKeyIDOperations::Sign(), TOOLKIT_OCSP_ASN, and CPKIFOID::ToString().
Referenced by _CreateComplexOCSPRequest(), and _CreateSimpleOCSPRequest().
void CPKIFOCSPRequest::Decode | ( | CPKIFBufferPtr & | msg | ) |
Interface: External
This function is used to decode an encoded OCSPRequest object.
CPKIFOCSPException(COMMON_INVALID_INPUT) | ||
CPKIFOCSPException(ASN1_DECODE_ERROR) |
msg | [in] Reference to a smart pointer to a CPKIFBuffer object containing an encoded OCSPRequest object |
Definition at line 353 of file OCSPRequest.cpp.
References ASN1_DECODE_ERROR, COMMON_INVALID_INPUT, LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.
friend struct CPKIFOCSPRequestImpl [friend] |
Definition at line 39 of file OCSPRequest.h.