CPKIFEvidenceRecordVerifier Class Reference

#include <EvidenceRecordVerifier.h>

Collaboration diagram for CPKIFEvidenceRecordVerifier:

Collaboration graph
[legend]

List of all members.


Detailed Description

The CPKIFEvidenceRecordVerifier class provides an interface to verify EvidenceRecords.

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 &currentMediator)
IPKIFMediatorPtr GetCurrentMediator ()
void SetCurrentPathSettings (CPKIFPathSettingsPtr &currentPS)
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.

Constructor & Destructor Documentation

CPKIFEvidenceRecordVerifier::CPKIFEvidenceRecordVerifier ( void   ) 

Interface: External

Default constructor for CPKIFEvidenceRecordVerifier

Returns:
None

Definition at line 350 of file EvidenceRecordVerifier.cpp.

CPKIFEvidenceRecordVerifier::~CPKIFEvidenceRecordVerifier ( void   ) 

Interface: External

Default destructor

Returns:
None

Definition at line 360 of file EvidenceRecordVerifier.cpp.


Member Function Documentation

void CPKIFEvidenceRecordVerifier::SetSecuritySuitabilityPolicy ( const IPKIFSecuritySuitabilityPtr &  ssp  ) 

Interface: External

This function is used to set Security Suitability Policy

Returns:
None

Definition at line 547 of file EvidenceRecordVerifier.cpp.

IPKIFSecuritySuitabilityPtr CPKIFEvidenceRecordVerifier::GetSecuritySuitabilityPolicy (  )  const

Interface: External

This function is used to get Security Suitability Policy

Returns:
None

Definition at line 558 of file EvidenceRecordVerifier.cpp.

void CPKIFEvidenceRecordVerifier::SetCurrentMediator ( IPKIFMediatorPtr currentMediator  ) 

Interface: External

This function sets current mediator

Returns:
None
Parameters:
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

Returns:
None

Definition at line 385 of file EvidenceRecordVerifier.cpp.

void CPKIFEvidenceRecordVerifier::SetCurrentPathSettings ( CPKIFPathSettingsPtr &  currentPS  ) 

Interface: External

This function is used set current path settings

Returns:
None

Definition at line 396 of file EvidenceRecordVerifier.cpp.

CPKIFPathSettingsPtr CPKIFEvidenceRecordVerifier::GetCurrentPathSettings (  ) 

Interface: External

This function is used to get current path settings

Returns:
None

Definition at line 407 of file EvidenceRecordVerifier.cpp.

void CPKIFEvidenceRecordVerifier::AddArchiveMediator ( CPKIFExMediatorPtr &  archiveMediator  ) 

Interface: External

This function is used to add an archive mediator

Returns:
None

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

Returns:
None
Parameters:
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

Returns:
Smart pointer to IPKIFMediator object

Definition at line 418 of file EvidenceRecordVerifier.cpp.

void CPKIFEvidenceRecordVerifier::AddArchivePathSettings ( CPKIFExPathSettingsPtr &  ps  ) 

Interface: External

This function is used to add archive path settings

Returns:
None
Parameters:
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

Returns:
None
Parameters:
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

Returns:
Smart pointer to CPKIFPathSettings object

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

Returns:
None

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

Returns:
None

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

Returns:
None

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:

  • current mediator
  • archive mediator
  • original data (or a parallel hash object containing all relevant hashes)

The current mediator and archive mediator may be the same mediator/colleague set, but both must be available.

Returns:
Smart pointer to SeqResults

Definition at line 579 of file EvidenceRecordVerifier.cpp.

References CalculateHashOfArchiveTimestampChain(), CPKIFTime::CurrentTime(), CPKIFAlgorithm::GetAlg(), GetHash(), GetHashAlgorithmFromTimestamp(), GetTimeFromTimestamp(), and CPKIFAlgorithm::HashAlg().


The documentation for this class was generated from the following files:

Generated on Mon Nov 15 11:20:16 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6