You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Signature</strong> <strong>Components</strong> <strong>API</strong><br />
3.1.2 Methods<br />
3.1.2.1 CheckIntegrity<br />
Checks the integrity of the <strong>Signature</strong> object to detect whether it has been tampered with since<br />
signing.<br />
IntegrityStatus CheckIntegrity( Key )<br />
Parameters:<br />
Key<br />
Optional Key object. If not supplied the code uses Key type MD5 by<br />
default.<br />
Return Value: IntegrityStatus<br />
IntegrityOK<br />
Data has not changed since signature capture<br />
IntegrityFail<br />
Data has changed since signature capture<br />
IntegrityMissing<br />
<strong>Signature</strong> integrity value not found<br />
IntegrityWrongType <strong>Signature</strong> was captured using a different integrity check version<br />
3.1.2.2 CheckSignedData<br />
Checks for a match between a given hash and that provided when the signature was captured. If the<br />
signature is bound to a hash (ie. the What argument of the DynamicCapture or SigCtl Capture<br />
method was set), then this function checks the signed data against that from which the supplied<br />
hash was derived.<br />
This method is called by SigCtlXHTML.CheckHostDocument() which supplies the necessary Hash.<br />
SignedData CheckSignedData(Hash)<br />
Parameters:<br />
Hash<br />
Return Value: SignedData<br />
DataGood<br />
DataNoHash<br />
DataBadType<br />
DataBadHash<br />
Hash object, to be compared with that provided when the signature<br />
was captured.<br />
The supplied hash matches that provided when the signature was<br />
captured, thus both Hash objects have been derived from the same<br />
data set.<br />
No hash was specified when the signature was captured (or the<br />
object does not contain a signature).<br />
The supplied hash is of a different type (HashType Enum) to that<br />
provided when the signature was captured.<br />
The supplied hash value does not match that provided when the<br />
signature was captured, thus the two Hash objects have been<br />
derived from different data sets.<br />
3.1.2.3 Clear<br />
Clears all signature data and thus reinitializes the <strong>Signature</strong> object.<br />
Void Clear()<br />
Parameters: none<br />
Return Value: none<br />
Page 8 of 75