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)
ParameterTypeDescription
signNameconst System::SharedPtr<SignatureName>&The name of signature.
optionsconst System::SharedPtr<Security::ValidationOptions>&The verification options.
validationResultSystem::SharedPtr<Security::ValidationResult>&The certificate validation result.
verificationResultSystem::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

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)
ParameterTypeDescription
signNameconst System::SharedPtr<SignatureName>&The name of signature.
publicKeyCertificateconst System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&The public key certificate for verification.
optionsconst System::SharedPtr<Security::ValidationOptions>&The verification options.
validationResultSystem::SharedPtr<Security::ValidationResult>&The certificate validation result.
verificationResultSystem::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

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)
ParameterTypeDescription
signNameconst System::SharedPtr<SignatureName>&The name of signature.
publicKeyCertificateconst System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&The public key certificate for verification.
verificationResultSystem::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

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)
ParameterTypeDescription
signNameconst System::SharedPtr<SignatureName>&The name of signature.
verificationResultSystem::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