#include <CertReply.h>
CertReply ::= SEQUENCE { cert CertReference, replyStatus ReplyStatus DEFAULT success, replyValTime GeneralizedTime, replyChecks ReplyChecks, replyWantBacks ReplyWantBacks, validationErrors [0] SEQUENCE SIZE (1..MAX) OF OBJECT IDENTIFIER OPTIONAL, nextUpdate [1] GeneralizedTime OPTIONAL, certReplyExtensions [2] Extensions OPTIONAL }
TSP-enforcing: No
Definition at line 46 of file CertReply.h.
Public Member Functions | |
CPKIFCertReply () | |
CPKIFCertReply (const CPKIFBufferPtr &) | |
virtual | ~CPKIFCertReply (void) |
void | SetCertRef (CPKIFCertReferencePtr &cert) |
const CPKIFCertReferencePtr | GetCertRef () const |
void | SetReplyStatus (int replyStatus) |
const int | GetReplyStatus () const |
void | SetReplyValTime (CPKIFTimePtr &replyValTime) |
const CPKIFTimePtr | GetReplyValTime () const |
void | SetReplyChecks (CPKIFReplyCheckListPtr &replyChecks) |
void | GetReplyChecks (CPKIFReplyCheckListPtr &replyChecks) const |
void | SetReplyWantBacks (CPKIFReplyWantBackListPtr &replyWantBacks) |
void | GetReplyWantBacks (CPKIFReplyWantBackListPtr &replyWantBacks) const |
void | SetValErrors (CPKIFOIDListPtr &errors) |
void | GetValErrors (CPKIFOIDListPtr &errors) const |
void | SetNextUpdate (CPKIFTimePtr &nextUpdate) |
const CPKIFTimePtr | GetNextUpdate () const |
bool | ExtensionsPresent () const |
template<class T> | |
boost::shared_ptr< T > | GetExtension () |
void | GetExtensionByOID (const CPKIFOID &oid, CPKIFX509ExtensionPtr &ref) |
void | GetEncodedExtensions (CPKIFBufferPtr &buf) |
CPKIFCertReply::CPKIFCertReply | ( | ) |
Interface: External
This function is used to create and initialize CPKIFCertReply object.
Definition at line 165 of file CertReply.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
CPKIFCertReply::CPKIFCertReply | ( | const CPKIFBufferPtr & | hashValue | ) |
Interface: External
This constructor is internally invoked; it will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the extension cannot be parsed.
std::bad_alloc |
hashValue | [in] A reference to a smart pointer to CPKIFBuffer object containing der encoded CertReply |
Definition at line 183 of file CertReply.cpp.
References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, CPKIFTime, and TOOLKIT_SCVP_ASN.
CPKIFCertReply::~CPKIFCertReply | ( | void | ) | [virtual] |
Interface: External
This function destroys instances of CPKIFCertReply.
Definition at line 275 of file CertReply.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
void CPKIFCertReply::SetCertRef | ( | CPKIFCertReferencePtr & | certRef | ) |
Interface: External
This function is used to set the certificate reference
certRef | [in] Smart pointer to CPKIFCertReference object containing the certificate reference |
Definition at line 538 of file CertReply.cpp.
const CPKIFCertReferencePtr CPKIFCertReply::GetCertRef | ( | ) | const |
Interface: External
This function is used to retrieve the certificate reference
Definition at line 551 of file CertReply.cpp.
void CPKIFCertReply::SetReplyStatus | ( | int | replyStatus | ) |
Interface: External
This function is used to set the reply status
Reply satus values
success = 0, malformedPKC = 1, malformedAC = 2, unavailableValidityTime = 3, referenceCertHashFail = 4, certPathConstructFail = 5, certPathNotValid = 6, certPathNotValidNow = 7, wantBackUnsatisfied = 8
replyStatus | [in] Integer representing the reply status |
Definition at line 463 of file CertReply.cpp.
const int CPKIFCertReply::GetReplyStatus | ( | ) | const |
Definition at line 470 of file CertReply.cpp.
void CPKIFCertReply::SetReplyValTime | ( | CPKIFTimePtr & | validationTime | ) |
Interface: External
This function is used to set an indicator that is used to set reply validation time
validationTime | [in] Reference to a smart pointer to a CPKIFTimePtr object containing reply validation time |
Definition at line 372 of file CertReply.cpp.
const CPKIFTimePtr CPKIFCertReply::GetReplyValTime | ( | ) | const |
Interface: External
This function is used to get the validation time
Definition at line 385 of file CertReply.cpp.
void CPKIFCertReply::SetReplyChecks | ( | CPKIFReplyCheckListPtr & | replyChecks | ) |
Interface: External
This function is used to set the list of reply checks
replyChecks | [in] Reference to a smart pointer to a CPKIFReplyCheckList object containing a list of reply checks |
Definition at line 482 of file CertReply.cpp.
void CPKIFCertReply::GetReplyChecks | ( | CPKIFReplyCheckListPtr & | replyChecks | ) | const |
Interface: External
This function is used to retrieve the list of reply checks
replyChecks | [out] Reference to a smart pointer to a CPKIFReplyCheckList object. |
Definition at line 496 of file CertReply.cpp.
void CPKIFCertReply::SetReplyWantBacks | ( | CPKIFReplyWantBackListPtr & | replyWantBacks | ) |
Interface: External
This function is used to set reply want back list
replyWantBacks | [in] Reference to a smart pointer to a CPKIFReplyWantBackList object containing reply want back list |
Definition at line 511 of file CertReply.cpp.
void CPKIFCertReply::GetReplyWantBacks | ( | CPKIFReplyWantBackListPtr & | replyWantBacks | ) | const |
Interface: External
This function is used to retrieve the reply want back list
replyWantBacks | [out] Reference to a smart pointer to a CPKIFReplyWantBackList object. |
Definition at line 525 of file CertReply.cpp.
void CPKIFCertReply::SetValErrors | ( | CPKIFOIDListPtr & | errors | ) |
Interface: External
This function is used to set the validation errors.
errors | [in] Reference to a smart pointer to a CPKIFOIDList object containing a list of object identifiers |
Definition at line 422 of file CertReply.cpp.
void CPKIFCertReply::GetValErrors | ( | CPKIFOIDListPtr & | errors | ) | const |
Interface: External
This function is used to retrieve the validation erros.
errors | [out] Reference to a smart pointer to a CPKIOIDList object. |
Definition at line 436 of file CertReply.cpp.
void CPKIFCertReply::SetNextUpdate | ( | CPKIFTimePtr & | nextUpdate | ) |
Interface: External
This function is used to set an indicator that is used to set next update time
nextUpdate | [in] Reference to a smart pointer to a CPKIFTimePtr object containing reply next update |
Definition at line 397 of file CertReply.cpp.
const CPKIFTimePtr CPKIFCertReply::GetNextUpdate | ( | ) | const |
Interface: External
This function is used to get the next update time
Definition at line 410 of file CertReply.cpp.
bool CPKIFCertReply::ExtensionsPresent | ( | ) | const |
Interface: External
This function returns true if CPKIFCertReply contained extensions.
True | if a CPKIFCertReply contained extensions | |
False | if a CPKIFCertReply did not contain extensions |
Definition at line 355 of file CertReply.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
boost::shared_ptr<T> CPKIFCertReply::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 from IPKIFHasExtensions.
void CPKIFCertReply::GetExtensionByOID | ( | const CPKIFOID & | oid, | |
CPKIFX509ExtensionPtr & | ref | |||
) | [virtual] |
Interface: External
This function retrives the extension identified by CPKIFOID object
oid | [in] Identifies the extension sought |
ref | [out] The extension (if present). |
Implements IPKIFHasExtensions.
Definition at line 326 of file CertReply.cpp.
void CPKIFCertReply::GetEncodedExtensions | ( | CPKIFBufferPtr & | buf | ) | [virtual] |
Interface: External
This function returns a smart pointer to CPKIFBuffer object which will contain the encoded extensions
buf | [out] A reference to a smart pointer to CPKIFBuffer object which will contain the encoded extensions |
Implements IPKIFHasExtensions.
Definition at line 292 of file CertReply.cpp.
References CACASNWRAPPER_CREATE, and data.