MailMessage.ValidateSignature Method
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9119)
ValidateSignature()
Validates all digital signatures on a signed message and validates all the signers' certificates.
Declaration
public MailSignatureValidity ValidateSignature()
Returns
Type | Description |
---|---|
MailSignatureValidity | Validation result. |
ValidateSignature(MailSignatureValidationOptions)
Validates all digital signatures on a signed message. The specified validation options are taken into account.
Declaration
public MailSignatureValidity ValidateSignature(MailSignatureValidationOptions signatureValidationOptions)
Parameters
Type | Name | Description |
---|---|---|
MailSignatureValidationOptions | signatureValidationOptions | Signature validation options. |
Returns
Type | Description |
---|---|
MailSignatureValidity | Validation result. |
ValidateSignature(Boolean, ValidationOptions)
Validates all digital signatures on a signed message. Optionally, signers' certificates are not validated, and the specified validation options are taken into account.
Declaration
public MailSignatureValidity ValidateSignature(bool verifySignatureOnly, ValidationOptions options)
Parameters
Type | Name | Description |
---|---|---|
Boolean | verifySignatureOnly | Specifies whether to only verify the signatures, skipping the certificate validation. |
ValidationOptions | options | Certificate validation options (not supported by CertificateChainEngine.Native engine on Xamarin.iOS and Xamarin.Android). |
Returns
Type | Description |
---|---|
MailSignatureValidity | Validation result. |
ValidateSignature(Boolean, ValidationOptions, CertificateChainEngine)
Validates all digital signatures on a signed message with the specified engine. Optionally, signers' certificates are not validated, and the specified validation options are taken into account.
Declaration
public MailSignatureValidity ValidateSignature(bool verifySignatureOnly, ValidationOptions options, CertificateChainEngine certificateEngine)
Parameters
Type | Name | Description |
---|---|---|
Boolean | verifySignatureOnly | Specifies whether to only verify the signatures, skipping the certificate validation. |
ValidationOptions | options | Certificate validation options (not supported by CertificateChainEngine.Native engine on Xamarin.iOS and Xamarin.Android). |
CertificateChainEngine | certificateEngine | Certificate chain engine. |
Returns
Type | Description |
---|---|
MailSignatureValidity | Validation result. |
ValidateSignature(MailSignatureValidationOptions, ValidationOptions, CertificateChainEngine)
Validates all digital signatures on a signed message with the specified engine. The specified validation options are taken into account.
Declaration
public MailSignatureValidity ValidateSignature(MailSignatureValidationOptions signatureValidationOptions, ValidationOptions options, CertificateChainEngine certificateEngine)
Parameters
Type | Name | Description |
---|---|---|
MailSignatureValidationOptions | signatureValidationOptions | Signature validation options. |
ValidationOptions | options | Certificate validation options (not supported by CertificateChainEngine.Native engine on Xamarin.iOS and Xamarin.Android). |
CertificateChainEngine | certificateEngine | Certificate chain engine. |
Returns
Type | Description |
---|---|
MailSignatureValidity | Validation result. |