PdfFileSignature.VerifySignature
VerifySignature(SignatureName)
Checks the validity of a signature.
public bool VerifySignature(SignatureName signName)
| Parameter | Type | Description |
|---|---|---|
| signName | SignatureName | The name of signature. |
Return Value
Return a result of bool type.
See Also
- class SignatureName
- class PdfFileSignature
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
VerifySignature(SignatureName, ValidationOptions, out ValidationResult)
Checks the validity of a signature.
public bool VerifySignature(SignatureName signName, ValidationOptions options,
out ValidationResult validationResult)
| Parameter | Type | Description |
|---|---|---|
| signName | SignatureName | The name of signature. |
| options | ValidationOptions | The verification options. |
| validationResult | ValidationResult& | The certificate validation result. |
Return Value
Return a result of bool type.
Remarks
This method allows you to check the signing certificate using OCSP and/or CRL (certificate revocation list) for revocation. This method does not check the certificate chain and its validity, but it does check whether the end certificate has been revoked.
See Also
- class SignatureName
- class ValidationOptions
- class ValidationResult
- class PdfFileSignature
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
VerifySignature(SignatureName, X509Certificate2, ValidationOptions, out ValidationResult)
Checks the validity of a signature. Verification is performed using the external public key certificate.
public bool VerifySignature(SignatureName signName, X509Certificate2 publicKeyCertificate,
ValidationOptions options, out ValidationResult validationResult)
| Parameter | Type | Description |
|---|---|---|
| signName | SignatureName | The name of signature. |
| publicKeyCertificate | X509Certificate2 | The public key certificate for verification. |
| options | ValidationOptions | The verification options. |
| validationResult | ValidationResult& | The certificate validation result. |
Return Value
Return a result of bool type.
Remarks
This method allows you to check the signing certificate using OCSP and/or CRL (certificate revocation list) for revocation. This method does not check the certificate chain and its validity, but it does check whether the end certificate has been revoked.
See Also
- class SignatureName
- class ValidationOptions
- class ValidationResult
- class PdfFileSignature
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
VerifySignature(SignatureName, X509Certificate2)
Checks the validity of a signature. Verification is performed using the external public key certificate.
public bool VerifySignature(SignatureName signName, X509Certificate2 publicKeyCertificate)
| Parameter | Type | Description |
|---|---|---|
| signName | SignatureName | The name of signature. |
| publicKeyCertificate | X509Certificate2 | The public key certificate for verification. |
Return Value
Return a result of bool type.
See Also
- class SignatureName
- class PdfFileSignature
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF