CryptoManager.VerifySignature

Syntax:

VerifySignature(<InitialData>, <Signature>, <Certificate>)

Parameters:

<InitialData> (required)

Type: String: BinaryData.
Initial data to check.
Data can be located in file (in this case the file name is specified) or represented as BinaryData.

<Signature> (required)

Type: String: BinaryData.
Signature to check.
Initial data can be located in file (in this case the file name is specified) or represented as BinaryData.

<Certificate> (optional)

Type: CryptoCertificate.
This parameter contains a certificate, using which the signature was performed (if the certificate is included in the signature data).

Description:

Checks signature validity.
The format of initial data is PKCS#7.
The method does not perform the import of certificates from signature data to the sertificate store.

Availability:

Thin client, web-client, server, thick client, external connection.

Note:

If signature check fails, the exceptional situation is generated.

See also:

CryptoManager, method BeginVerifyingSignature

    

1C:Enterprise Developer's Community