#include <Query.h>
Query ::= SEQUENCE { queriedCerts CertReferences, checks CertChecks, -- Note: tag [0] not used -- wantBack [1] WantBack OPTIONAL, validationPolicy ValidationPolicy, responseFlags ResponseFlags OPTIONAL, serverContextInfo [2] OCTET STRING OPTIONAL, validationTime [3] GeneralizedTime OPTIONAL, intermediateCerts [4] CertBundle OPTIONAL, revInfos [5] RevocationInfos OPTIONAL, producedAt [6] GeneralizedTime OPTIONAL, queryExtensions [7] Extensions OPTIONAL }
TSP-enforcing: No
Definition at line 59 of file Query.h.
Public Member Functions | |
CPKIFQuery () | |
CPKIFQuery (const CPKIFBufferPtr &query) | |
virtual | ~CPKIFQuery (void) |
void | SetValidationPolicy (CPKIFValidationPolicyPtr &validationPolicy) |
const CPKIFValidationPolicyPtr | GetValidationPolicy () const |
void | SetChecks (CPKIFOIDListPtr &checks) |
void | GetChecks (CPKIFOIDListPtr &checks) const |
void | SetCertRef (CPKIFCertReferencesPtr &certRefs) |
void | GetCertRef (CPKIFCertReferencesPtr &certRefs) const |
void | SetWantBack (CPKIFOIDListPtr &wantBack) |
void | GetWantBack (CPKIFOIDListPtr &wantBack) const |
void | SetValidationTime (CPKIFTimePtr &validationTime) |
const CPKIFTimePtr | GetValidationTime () const |
void | SetProducedAt (CPKIFTimePtr &producedAt) |
const CPKIFTimePtr | GetProducedAt () const |
void | SetRevInfos (CPKIFRevocationInfoListPtr &revInfos) |
void | GetRevInfos (CPKIFRevocationInfoListPtr &revInfos) const |
void | SetResponseFlags (CPKIFResponseFlagsPtr &responseFlags) |
const CPKIFResponseFlagsPtr | GetResponseFlags () const |
void | SetServerContextInfo (CPKIFBufferPtr &serverContextInfo) |
const CPKIFBufferPtr | GetServerContextInfo () const |
void | SetCertBundle (CPKIFCertificateListPtr &bundle) |
void | GetCertBundle (CPKIFCertificateListPtr &bundle) const |
void | AddToCertBundle (CPKIFCertificatePtr &cert) |
bool | ExtensionsPresent () const |
template<class T> | |
boost::shared_ptr< T > | GetExtension () |
void | GetExtensionByOID (const CPKIFOID &oid, CPKIFX509ExtensionPtr &ref) |
void | GetEncodedExtensions (CPKIFBufferPtr &buf) |
bool | AreThereAnyUnprocessedCriticalExtensions () |
CPKIFQuery::CPKIFQuery | ( | ) |
Interface: External
This function is used to create and initialize CPKIFQuery object.
Definition at line 168 of file Query.cpp.
References g_id_svp_defaultValPolicy, LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
CPKIFQuery::CPKIFQuery | ( | const CPKIFBufferPtr & | name | ) |
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 |
name | [in] A reference to a smart pointer to CPKIFBuffer object containing der encoded query |
Definition at line 191 of file Query.cpp.
References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, CPKIFTime, and TOOLKIT_SCVP_ASN.
CPKIFQuery::~CPKIFQuery | ( | void | ) | [virtual] |
Interface: External
This function destroys instances of CPKIFQuery.
Definition at line 344 of file Query.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
void CPKIFQuery::SetValidationPolicy | ( | CPKIFValidationPolicyPtr & | validationPolicy | ) |
Interface: External
This function sets validation policy for CPKIFQuery object
validationPolicy | [in] Reference to a smart pointer to a CPKIFValidationPolicy object containing validation policy |
const CPKIFValidationPolicyPtr CPKIFQuery::GetValidationPolicy | ( | ) | const |
Interface: External
This function returns a validation policy for CPKIFQuery object
void CPKIFQuery::SetChecks | ( | CPKIFOIDListPtr & | checks | ) |
Interface: External
This function is used to set the checks that SCVP clinet wants the SCVP server to perform. The checks are represent by object identifiers
checks | [in or out] Reference to a smart pointer to a CPKIFOIDList object containing a list of object identifiers |
void CPKIFQuery::GetChecks | ( | CPKIFOIDListPtr & | checks | ) | const |
Interface: External
This function is used to retrieve the checks that SCVP clinet wants the SCVP server to perform.
checks | [out] Reference to a smart pointer to a CPKIOIDList object. This parameter conatins a list of oids that represent checks that SCVP client wants the server to perform. |
void CPKIFQuery::SetCertRef | ( | CPKIFCertReferencesPtr & | certRefs | ) |
Interface: External
This function sets the list of cert references for CPKIFQuery object. At this time there is no support for attribute certificates.
certRefs | [in] Smart pointer to CPKIFCertReferences object which will contain the list of TAs |
void CPKIFQuery::GetCertRef | ( | CPKIFCertReferencesPtr & | certRefs | ) | const |
Interface: External
This function retrives a list of cert references from CPKIFQuery object
certRefs | [in/out] Smart pointer to CPKIFCertReferences object which will contain the list of TAs |
void CPKIFQuery::SetWantBack | ( | CPKIFOIDListPtr & | wantBack | ) |
Interface: External
This function is used to set want back item of SCVP query. WantBack item describes any information the SCVP client wants from the SCVP server for the certificates(s) in the queriedCerts item in addition to the results of the checks specified in certCecks.
wantBack | [in] Reference to a smart pointer to a CPKIFOIDList object containing a list of object identifiers |
void CPKIFQuery::GetWantBack | ( | CPKIFOIDListPtr & | wantBack | ) | const |
Interface: External
This function is used to retrieve the set of policies that comprise the initial policy set used for path validation operations. For the SetInitialPolicySet function, the initPolSet parameter should contain the policies that comprise the initial policy set to use during path validation operations.
wantBack | [out] Reference to a smart pointer to a CPKIOIDList object. |
void CPKIFQuery::SetValidationTime | ( | CPKIFTimePtr & | validationTime | ) |
const CPKIFTimePtr CPKIFQuery::GetValidationTime | ( | ) | const |
void CPKIFQuery::SetProducedAt | ( | CPKIFTimePtr & | producedAt | ) |
const CPKIFTimePtr CPKIFQuery::GetProducedAt | ( | ) | const |
void CPKIFQuery::SetRevInfos | ( | CPKIFRevocationInfoListPtr & | revInfos | ) |
Interface: External
This function is used to set revocation infos item of SCVP query. Revocation infos item specifies revocation information such as CRLs, delta CRLs, and OCSP responses. The purpose of this item is to provide revocation info to which the server might not have access to.
revInfos | [in] Smart pointer to CPKIFRevocationInfoList object which contains a list of rev infos |
void CPKIFQuery::GetRevInfos | ( | CPKIFRevocationInfoListPtr & | revInfos | ) | const |
Interface: External
This function is used to get revocation infos item of SCVP query. Revocation infos item specifies revocation information such as CRLs, delta CRLs, and OCSP responses. The purpose of this item is to provide revocation info to which the server might not have access to.
revInfos | [out] Smart pointer to CPKIFRevocationInfoList object which will contains a list of rev infos |
void CPKIFQuery::SetResponseFlags | ( | CPKIFResponseFlagsPtr & | responseFlags | ) |
const CPKIFResponseFlagsPtr CPKIFQuery::GetResponseFlags | ( | ) | const |
void CPKIFQuery::SetServerContextInfo | ( | CPKIFBufferPtr & | serverContextInfo | ) |
Interface: External
This function sets the server context information for CPKIFQuery object.
serverContextInfo | [in] Smart pointer to CPKIFBuffer object which will contain the server context information |
const CPKIFBufferPtr CPKIFQuery::GetServerContextInfo | ( | ) | const |
Interface: External
This function retrives server context information for CPKIFQuery object.
void CPKIFQuery::SetCertBundle | ( | CPKIFCertificateListPtr & | intermidiateCerts | ) |
void CPKIFQuery::GetCertBundle | ( | CPKIFCertificateListPtr & | intermidiateCerts | ) | const |
Interface: External
This function is used to get the certificate bundle
intermidiateCerts | [out] Reference to a smart pointer to a CPKIFCertificateListPtr object containing a list of certificates |
void CPKIFQuery::AddToCertBundle | ( | CPKIFCertificatePtr & | cert | ) |
bool CPKIFQuery::ExtensionsPresent | ( | ) | const |
Interface: External
This function returns true if CPKIFQuery contained extensions.
True | if a CPKIFQuery contained extensions | |
False | if a CPKIFQuery did not contain extensions |
Definition at line 425 of file Query.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
boost::shared_ptr<T> CPKIFQuery::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 CPKIFQuery::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.
void CPKIFQuery::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 362 of file Query.cpp.
References CACASNWRAPPER_CREATE, and data.
bool CPKIFQuery::AreThereAnyUnprocessedCriticalExtensions | ( | ) |
Interface: External
This function determines if a Query object holds any unprocessed critical extensions.
Definition at line 725 of file Query.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_OCSP_ASN.