Sign data, producing a PKCS #7 or CAdES signature.
Namespace: de.softpro.signdocsdkAssembly: SPSignDoc_4.1_DotNetLibd (in SPSignDoc_4.1_DotNetLibd.dll) Version: 1.0.5882.21462
Syntaxbyte[] sign(
ISource source,
bool detached,
HashAlgorithm hashAlgorithm,
TimeStamper timeStamper
)
Function sign (
source As ISource,
detached As Boolean,
hashAlgorithm As HashAlgorithm,
timeStamper As TimeStamper
) As Byte()
array<unsigned char>^ sign(
ISource^ source,
bool detached,
HashAlgorithm hashAlgorithm,
TimeStamper^ timeStamper
)
abstract sign :
source : ISource *
detached : bool *
hashAlgorithm : HashAlgorithm *
timeStamper : TimeStamper -> byte[]
Parameters
- source
- Type: de.softpro.signdocsdkISource
An object providing data to be hashed and signed.
If @a aDetached is false, all the data shall
be encapsulated in the PKCS #7 message.
- detached
- Type: SystemBoolean
true for a detached signature,
false for an encapsulated signature.
- hashAlgorithm
- Type: de.softpro.signdocsdk.Enums.ESignPKCS7HashAlgorithm
Hash algorithm to be used for signature:
#ha_md5, #ha_sha1, #ha_sha256, #ha_sha384, #ha_sha512, or #ha_ripemd160.
- timeStamper
- Type: de.softpro.signdocsdkTimeStamper
Non-null to use a time-stamp server.
Return Value
Type:
Byte The ASN.1-encoded PKCS #7 or CAdES signature or null on error.
See Also