Aspose::Pdf::Facades::PdfFileSignature::VerifySignature method
PdfFileSignature::VerifySignature(const System::SharedPtr<SignatureName>&) method
Checks the validity of a signature.
bool Aspose::Pdf::Facades::PdfFileSignature::VerifySignature(const System::SharedPtr<SignatureName> &signName)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::SharedPtr<SignatureName>& | The name of signature. |
ReturnValue
Return a result of bool type.
See Also
- Typedef SharedPtr
- Class SignatureName
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::VerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&) method
Checks the validity of a signature.
bool Aspose::Pdf::Facades::PdfFileSignature::VerifySignature(const System::SharedPtr<SignatureName> &signName, const System::SharedPtr<Security::ValidationOptions> &options, System::SharedPtr<Security::ValidationResult> &validationResult)
| 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. |
ReturnValue
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
- Typedef SharedPtr
- Class SignatureName
- Class ValidationOptions
- Class ValidationResult
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::VerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&) method
Checks the validity of a signature. Verification is performed using the external public key certificate.
bool Aspose::Pdf::Facades::PdfFileSignature::VerifySignature(const System::SharedPtr<SignatureName> &signName, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &publicKeyCertificate)
| 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. |
ReturnValue
Return a result of bool type.
See Also
- Typedef SharedPtr
- Class SignatureName
- Class X509Certificate2
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::VerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&) method
Checks the validity of a signature. Verification is performed using the external public key certificate.
bool Aspose::Pdf::Facades::PdfFileSignature::VerifySignature(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)
| 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. |
ReturnValue
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
- Typedef SharedPtr
- Class SignatureName
- Class X509Certificate2
- Class ValidationOptions
- Class ValidationResult
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::VerifySignature(const System::String&) method
Checks the validity of a signature.
bool Aspose::Pdf::Facades::PdfFileSignature::VerifySignature(const System::String &signName)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::String& | The name of signature. |
ReturnValue
Return a result of bool type.
Deprecated
Use VerifySignature(SignatureName) method instead.
See Also
- Class String
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSignature::VerifySignature(const System::String&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&) method
Checks the validity of a signature.
bool Aspose::Pdf::Facades::PdfFileSignature::VerifySignature(const System::String &signName, const System::SharedPtr<Security::ValidationOptions> &options, System::SharedPtr<Security::ValidationResult> &validationResult)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::String& | The name of signature. |
| options | const System::SharedPtr<Security::ValidationOptions>& | The verification options. |
| validationResult | System::SharedPtr<Security::ValidationResult>& | The certificate validation result. |
ReturnValue
Return a result of bool type.
Remarks
Deprecated
Use VerifySignature(SignatureName, ValidationOptions, out ValidationResult) method instead.
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 String
- Typedef SharedPtr
- Class ValidationOptions
- Class ValidationResult
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++