CryptoManager.BeginSigning
Syntax variant: Signature data in return value
Syntax:
Parameters:
<NotifyDescription> (required)
Contains a description of the procedure that will be called upon completing data signatures with the following parameters:
- <SignedData> - for signature data of the type BinaryData.
- <AdditionalParameters> - value specified when the NotifyDescription object was created.
<InitialData> (required)
Initial data to sign.
Data can be located in file (in this case the file name is specified) or represented as BinaryData.
<Certificate> (optional)
Used cryptography certificate.
If not specified, the store of personal certificates must contain exactly one certificate. Otherwise, an exception described in the NotifyDescription object is generated.
Description of method variant:
Signature is created by algorithms, which are set by properties HashAlgorithm and SignAlgorithm.
Source file is not included in signature data.
The certificates can be included in signature data depending on the property IncludeCertificatesInSignature.
If the certificate is not indicated, the only installed personal certificate is used for the signature.
Upon completion, the procedure stated in NotifyDescription will be called. The procedure must have the following parameters:
- <SignedData> - for signature data of the type BinaryData.
- <AdditionalParameters>.
Syntax variant: Data are saved to file
Syntax:
Parameters:
<NotifyDescription> (required)
It contains description of the procedure that will be called after the data signing is completed with the following parameters:
- <FileName> - an output file name.
- <AdditionalParameters> - the value specified when the object is created NotifyDescription.
<InitialData> (required)
Initial data to sign.
Data can be located in file (in this case the file name is specified) or represented as BinaryData.
<OutputData> (required)
Name of file, to which the signed data is downloaded.
Description of method variant:
Description:
Signature is created by algorithms, which are set by properties HashAlgorithm and SignAlgorithm.
Source file is not included in signature data.
The certificates can be included in signature data depending on the property IncludeCertificatesInSignature.
If the certificate is not indicated, the only installed personal certificate is used for the signature.
Upon completion, the procedure specified in &NotifyDescription parameter is called.
Availability: