CreaSign

CreaSignLite.VerifyMethod

Verifies the signature on the specified data.

[VisualBasic]
PublicFunctionVerify( _
ByVal DataAsString,_
ByVal OptionsAsVerifyOptions,_
ByVal XPathAsObject,_
ByVal FileRootAsObject_
)AsVerifyResult

Parameters

Data
The data that is to be verified.
Options
The flags that affect the verification procedure.
XPath
The Xpath expresion pointing to the <ds:Signature> node that contains the signature.
FileRoot
A root directory for resolving relative file names. Optional.

Return Value

An object representing the verification result.

Remarks

The following types of sources are supported:

Source type XML signature PKCS#7 signature
A string A new XML document is created from a string and then verified. Not supported.
An XML element A new XML document is created from the element (IXMLDomElement) that holds the data and then verified. Not supported.
A byte array A new XML document is created from a single dimensional array of bytes and then verified. The data is loaded from a byte array and then verified.
A Data object A new XML document is created from the data stored in a Data object and then verified. The data is loaded from the Data object and then verified.
A custom object that implements the IStream interface A new XML document is created from the data stored in a custom object and verified. Some of the objects that implement the IStream interface: ASP Request object, ASP Response object, ADO stream. The data is loaded from the Data object and then verified.

This method can not be called from an untrusted code if FileRoot is specified.

Requirements

Requires CreaSign Pro or CreaSign Lite.

See Also

CreaSignLite Class | CreaSign Namespace


Send comments on this topic.

(c) Crea 2002-2006