SignedData.Validate Method
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9119)
Validate()
Validates all digital signatures on this CMS/PKCS #7 signed message and validates all the signers' certificates.
Declaration
public SignatureValidationResult Validate()
Returns
Type | Description |
---|---|
SignatureValidationResult | Validation result. |
Validate(Boolean, ValidationOptions)
Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, signers' certificates are validated, and the specified validation options are taken into account.
Declaration
public SignatureValidationResult Validate(bool verifySignatureOnly, ValidationOptions options)
Parameters
Type | Name | Description |
---|---|---|
Boolean | verifySignatureOnly | Specifies whether to only verify the signatures, skipping the certificate validation. |
ValidationOptions | options | Signature and certificate validation options. |
Returns
Type | Description |
---|---|
SignatureValidationResult | Validation result. |
Validate(Boolean, ValidationOptions, CertificateChainEngine)
Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, signers' certificates are validated, and the specified validation options are taken into account.
Declaration
public SignatureValidationResult Validate(bool verifySignatureOnly, ValidationOptions options, CertificateChainEngine engine)
Parameters
Type | Name | Description |
---|---|---|
Boolean | verifySignatureOnly | Specifies whether to only verify the signatures, skipping the certificate validation. |
ValidationOptions | options | Signature and certificate validation options. |
CertificateChainEngine | engine | Certificate chain engine. |
Returns
Type | Description |
---|---|
SignatureValidationResult | Validation result. |