Aspose::Pdf::Facades::PdfFileSignature::TryVerifySignature method
PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&, System::SharedPtr<Security::VerificationResult>&) method
Try to check the validity of a signature.
bool Aspose::Pdf::Facades::PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName> &signName, const System::SharedPtr<Security::ValidationOptions> &options, System::SharedPtr<Security::ValidationResult> &validationResult, System::SharedPtr<Security::VerificationResult> &verificationResult)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::SharedPtr<SignatureName>& | The name of signature. |
| options | const System::SharedPtr<Security::ValidationOptions>& | The verification options. |
| validationResult | System::SharedPtr<Security::ValidationResult>& | The certificate validation result. |
| verificationResult | System::SharedPtr<Security::VerificationResult>& | The verification result. |
ReturnValue
Returns true if the signature was processed correctly. Returns false if an error occurred during the verification process or the signature was corrupted or compromised.
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
- Typedef SharedPtr
- Class SignatureName
- Class ValidationOptions
- Class ValidationResult
- Class VerificationResult
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&, System::SharedPtr<Security::VerificationResult>&) method
Try to check the validity of a signature. Verification is performed using the external public key certificate.
bool Aspose::Pdf::Facades::PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName> &signName, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &publicKeyCertificate, const System::SharedPtr<Security::ValidationOptions> &options, System::SharedPtr<Security::ValidationResult> &validationResult, System::SharedPtr<Security::VerificationResult> &verificationResult)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::SharedPtr<SignatureName>& | The name of signature. |
| publicKeyCertificate | const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>& | The public key certificate for verification. |
| options | const System::SharedPtr<Security::ValidationOptions>& | The verification options. |
| validationResult | System::SharedPtr<Security::ValidationResult>& | The certificate validation result. |
| verificationResult | System::SharedPtr<Security::VerificationResult>& | The result of verification. |
ReturnValue
Returns true if the signature was processed correctly. Returns false if an error occurred during the verification process or the signature was corrupted or compromised.
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
- Typedef SharedPtr
- Class SignatureName
- Class X509Certificate2
- Class ValidationOptions
- Class ValidationResult
- Class VerificationResult
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, System::SharedPtr<Security::VerificationResult>&) method
Try to check the validity of a signature. Verification is performed using the external public key certificate.
bool Aspose::Pdf::Facades::PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName> &signName, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &publicKeyCertificate, System::SharedPtr<Security::VerificationResult> &verificationResult)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::SharedPtr<SignatureName>& | The name of signature. |
| publicKeyCertificate | const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>& | The public key certificate for verification. |
| verificationResult | System::SharedPtr<Security::VerificationResult>& | The result of verification. |
ReturnValue
Returns true if the signature was processed correctly. Returns false if an error occurred during the verification process or the signature was corrupted or compromised.
See Also
- Typedef SharedPtr
- Class SignatureName
- Class X509Certificate2
- Class VerificationResult
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName>&, System::SharedPtr<Security::VerificationResult>&) method
Try to check the validity of a signature.
bool Aspose::Pdf::Facades::PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<Security::VerificationResult> &verificationResult)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::SharedPtr<SignatureName>& | The name of signature. |
| verificationResult | System::SharedPtr<Security::VerificationResult>& | The result of verification. |
ReturnValue
Returns true if the signature was processed correctly. Returns false if an error occurred during the verification process or the signature was corrupted or compromised.
See Also
- Typedef SharedPtr
- Class SignatureName
- Class VerificationResult
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++