CreaSign.SignDocument Method
Digitally signs the specified data.
[Visual Basic]Public Function SignDocument( _
ByVal
CertName As
String, _
ByVal
Data As
Data, _
ByVal
ContentType As
String _
) As
Data Parameters
- CertName
- The digital certificate, the private key of which is used to compute the signature.
See also "Specifying the Signing Certificate".
- Data
- The data that should be signed.
- ContentType
- The content type describing the data format. Optional.
Return Value
Signed data.
Remarks
This method generates a signature in a PKCS#7 format.
The current time is added to the message as a signed attribute. When ContentType is specified, it
is added to the
signature as a signed attribute with the following OID: 1.3.6.1.4.1.18518.1.
This method can not be called from an untrusted code.
Requirements
Requires CreaSign Pro (not supported by CreaSign Lite).
See Also
CreaSign Class | CreaSign Namespace
Send comments on this topic.
(c) CREA 2002-2007 www.creasign.si