Click or drag to resize

SignedPkcs7TCheckSignature Method

Checks the signature of the CMS/PKCS #7 message and, optionally, validates the signers' certificates.

Namespace:  SysadminsLV.PKI.Cryptography.Pkcs
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public bool CheckSignature(
	bool checkSignatureOnly,
	bool checkAll
)

Parameters

checkSignatureOnly
Type: SystemBoolean
checks the signature
checkAll
Type: SystemBoolean

[Missing <param name="checkAll"/> documentation for "M:SysadminsLV.PKI.Cryptography.Pkcs.SignedPkcs7`1.CheckSignature(System.Boolean,System.Boolean)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:SysadminsLV.PKI.Cryptography.Pkcs.SignedPkcs7`1.CheckSignature(System.Boolean,System.Boolean)"]

Remarks
When message is signed with single signer, its signature is verified.

When message is signed by multiple signers and checkAll is set to false, then method returns True if signature check passed for at least one signer.

When message is signed by multiple signers and checkAll is set to true, then method returns True if signature check passed for all signers. If signature check fails for at least one signer, or any signer has absent signature value to validate, the method will return false.

See Also