#include <EvidenceRecordVerifier.h>
TSP-enforcing: No
Definition at line 49 of file EvidenceRecordVerifier.h.
Public Member Functions | |
CPKIFEvidenceRecordVerifier (void) | |
~CPKIFEvidenceRecordVerifier (void) | |
void | SetSecuritySuitabilityPolicy (const IPKIFSecuritySuitabilityPtr &ssp) |
IPKIFSecuritySuitabilityPtr | GetSecuritySuitabilityPolicy () const |
void | SetCurrentMediator (IPKIFMediatorPtr ¤tMediator) |
IPKIFMediatorPtr | GetCurrentMediator () |
void | SetCurrentPathSettings (CPKIFPathSettingsPtr ¤tPS) |
CPKIFPathSettingsPtr | GetCurrentPathSettings () |
void | AddArchiveMediator (CPKIFExMediatorPtr &archiveMediator) |
void | GetArchiveMediators (std::vector< CPKIFExMediatorPtr > &v) const |
IPKIFMediatorPtr | GetArchiveMediator (CPKIFTimePtr &t) |
void | AddArchivePathSettings (CPKIFExPathSettingsPtr &ps) |
void | GetArchivePathSettings (std::vector< CPKIFExPathSettingsPtr > &v) const |
CPKIFPathSettingsPtr | GetArchivePathSettings (CPKIFTimePtr &t) |
void | SetDataComplete (CPKIFBufferPtr &origData) |
Provide the complete data object covered by the evidence record. | |
void | SetDataHashSet (CPKIFParallelHashPtr &ph) |
Provide a set of hash values - must include each hash algorithm referenced in the evidence record. | |
CPKIFBufferPtr | GetHash (PKIFCRYPTO::HASH_ALG ha, IPKIFMediatorPtr &m) |
SeqResultsPtr | Verify (CPKIFEvidenceRecordPtr &er) |
Verify an evidence record given at least a minimal set of information as input. |
CPKIFEvidenceRecordVerifier::CPKIFEvidenceRecordVerifier | ( | void | ) |
Interface: External
Default constructor for CPKIFEvidenceRecordVerifier
Definition at line 350 of file EvidenceRecordVerifier.cpp.
CPKIFEvidenceRecordVerifier::~CPKIFEvidenceRecordVerifier | ( | void | ) |
Interface: External
Default destructor
Definition at line 360 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::SetSecuritySuitabilityPolicy | ( | const IPKIFSecuritySuitabilityPtr & | ssp | ) |
Interface: External
This function is used to set Security Suitability Policy
Definition at line 547 of file EvidenceRecordVerifier.cpp.
IPKIFSecuritySuitabilityPtr CPKIFEvidenceRecordVerifier::GetSecuritySuitabilityPolicy | ( | ) | const |
Interface: External
This function is used to get Security Suitability Policy
Definition at line 558 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::SetCurrentMediator | ( | IPKIFMediatorPtr & | currentMediator | ) |
Interface: External
This function sets current mediator
currentMediator | [in] Incoming mediator |
Definition at line 372 of file EvidenceRecordVerifier.cpp.
IPKIFMediatorPtr CPKIFEvidenceRecordVerifier::GetCurrentMediator | ( | ) |
Interface: External
This function is used to get current mediator
Definition at line 385 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::SetCurrentPathSettings | ( | CPKIFPathSettingsPtr & | currentPS | ) |
Interface: External
This function is used set current path settings
Definition at line 396 of file EvidenceRecordVerifier.cpp.
CPKIFPathSettingsPtr CPKIFEvidenceRecordVerifier::GetCurrentPathSettings | ( | ) |
Interface: External
This function is used to get current path settings
Definition at line 407 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::AddArchiveMediator | ( | CPKIFExMediatorPtr & | archiveMediator | ) |
Interface: External
This function is used to add an archive mediator
Definition at line 440 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::GetArchiveMediators | ( | std::vector< CPKIFExMediatorPtr > & | v | ) | const |
Interface: External
This function is used to get all archive mediators
v | [out] Vector of Archive Mediators |
Definition at line 451 of file EvidenceRecordVerifier.cpp.
IPKIFMediatorPtr CPKIFEvidenceRecordVerifier::GetArchiveMediator | ( | CPKIFTimePtr & | t | ) |
Interface: External
This function is used to get archive mediator for a particular time
Definition at line 418 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::AddArchivePathSettings | ( | CPKIFExPathSettingsPtr & | ps | ) |
Interface: External
This function is used to add archive path settings
ps | [out] Vector of Archive Mediators |
Definition at line 487 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::GetArchivePathSettings | ( | std::vector< CPKIFExPathSettingsPtr > & | v | ) | const |
Interface: External
This function is used to get all archive path settings
v | [out] Vector of Path settings |
Definition at line 500 of file EvidenceRecordVerifier.cpp.
CPKIFPathSettingsPtr CPKIFEvidenceRecordVerifier::GetArchivePathSettings | ( | CPKIFTimePtr & | t | ) |
Interface: External
This function is used to get archive path settings for a particular time
Definition at line 465 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::SetDataComplete | ( | CPKIFBufferPtr & | origData | ) |
Provide the complete data object covered by the evidence record.
Interface: External
This function is used to set original Evidence Record
Definition at line 514 of file EvidenceRecordVerifier.cpp.
void CPKIFEvidenceRecordVerifier::SetDataHashSet | ( | CPKIFParallelHashPtr & | ph | ) |
Provide a set of hash values - must include each hash algorithm referenced in the evidence record.
Interface: External
This function is used to set data hash set
Definition at line 525 of file EvidenceRecordVerifier.cpp.
CPKIFBufferPtr CPKIFEvidenceRecordVerifier::GetHash | ( | PKIFCRYPTO::HASH_ALG | ha, | |
IPKIFMediatorPtr & | m | |||
) |
Interface: External
This function is used to calculate hash over Evidence Record
Definition at line 536 of file EvidenceRecordVerifier.cpp.
Referenced by Verify().
SeqResultsPtr CPKIFEvidenceRecordVerifier::Verify | ( | CPKIFEvidenceRecordPtr & | er | ) |
Verify an evidence record given at least a minimal set of information as input.
Interface: External
Verify takes an evidence record and verifies all timestamps using information set by calls previous calls to the SetXXX functions on the CPKIFEvidenceRecordVerifier instance. Minimally, the following information must be available:
The current mediator and archive mediator may be the same mediator/colleague set, but both must be available.
Definition at line 579 of file EvidenceRecordVerifier.cpp.
References CalculateHashOfArchiveTimestampChain(), CPKIFTime::CurrentTime(), CPKIFAlgorithm::GetAlg(), GetHash(), GetHashAlgorithmFromTimestamp(), GetTimeFromTimestamp(), and CPKIFAlgorithm::HashAlg().