SignedPkcs7TCheckSignature Method

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

Definition

Namespace: SysadminsLV.PKI.Cryptography.Pkcs
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public bool CheckSignature(
	bool checkSignatureOnly,
	bool checkAll
)

Parameters

checkSignatureOnly  Boolean
checks the signature
checkAll  Boolean

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

Return Value

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