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

ReturnValue

Return a result of bool type.

See Also

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)
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.

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

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

ReturnValue

Return a result of bool type.

See Also

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)
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.

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

PdfFileSignature::VerifySignature(const System::String&) method

Checks the validity of a signature.

bool Aspose::Pdf::Facades::PdfFileSignature::VerifySignature(const System::String &signName)
ParameterTypeDescription
signNameconst System::String&The name of signature.

ReturnValue

Return a result of bool type.

Deprecated

Use VerifySignature(SignatureName) method instead.

See Also

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)
ParameterTypeDescription
signNameconst System::String&The name of signature.
optionsconst System::SharedPtr<Security::ValidationOptions>&The verification options.
validationResultSystem::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