Aspose::Pdf::Facades::PdfFileSignature::TryVerifySignature-metod

PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&, System::SharedPtr<Security::VerificationResult>&) method

Försök att kontrollera giltigheten för en signatur.

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)
ParameterTypBeskrivning
signNameconst System::SharedPtr<SignatureName>&Namnet på signaturen.
optionsconst System::SharedPtr<Security::ValidationOptions>&Verifieringsalternativen.
validationResultSystem::SharedPtr<Security::ValidationResult>&Resultatet av certifikatvalideringen.
verificationResultSystem::SharedPtr<Security::VerificationResult>&Verifieringsresultatet.

ReturnValue

Returnerar true om signaturen behandlades korrekt. Returnerar false om ett fel inträffade under verifieringsprocessen eller om signaturen var korrupt eller komprometterad.

Anmärkningar

Denna metod låter dig kontrollera signeringscertifikatet med hjälp av OCSP och/eller CRL (certifikatåterkallningslista) för återkallelse. Metoden kontrollerar inte certifikatkedjan och dess giltighet, men den kontrollerar om slutcertifikatet har återkallats.

Se även

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

Försök att kontrollera giltigheten för en signatur. Verifiering utförs med hjälp av det externa offentliga nyckelcertifikatet.

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)
ParameterTypBeskrivning
signNameconst System::SharedPtr<SignatureName>&Namnet på signaturen.
publicKeyCertificateconst System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&Det offentliga nyckelcertifikatet för verifiering.
optionsconst System::SharedPtr<Security::ValidationOptions>&Verifieringsalternativen.
validationResultSystem::SharedPtr<Security::ValidationResult>&Resultatet av certifikatvalideringen.
verificationResultSystem::SharedPtr<Security::VerificationResult>&Resultatet av verifieringen.

ReturnValue

Returnerar true om signaturen behandlades korrekt. Returnerar false om ett fel inträffade under verifieringsprocessen eller om signaturen var korrupt eller komprometterad.

Anmärkningar

Denna metod låter dig kontrollera signeringscertifikatet med hjälp av OCSP och/eller CRL (certifikatåterkallningslista) för återkallelse. Metoden kontrollerar inte certifikatkedjan och dess giltighet, men den kontrollerar om slutcertifikatet har återkallats.

Se även

PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, System::SharedPtr<Security::VerificationResult>&) method

Försök att kontrollera giltigheten för en signatur. Verifiering utförs med hjälp av det externa offentliga nyckelcertifikatet.

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)
ParameterTypBeskrivning
signNameconst System::SharedPtr<SignatureName>&Namnet på signaturen.
publicKeyCertificateconst System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&Det offentliga nyckelcertifikatet för verifiering.
verificationResultSystem::SharedPtr<Security::VerificationResult>&Resultatet av verifieringen.

ReturnValue

Returnerar true om signaturen behandlades korrekt. Returnerar false om ett fel inträffade under verifieringsprocessen eller om signaturen var korrupt eller komprometterad.

Se även

PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName>&, System::SharedPtr<Security::VerificationResult>&) method

Försök att kontrollera giltigheten för en signatur.

bool Aspose::Pdf::Facades::PdfFileSignature::TryVerifySignature(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<Security::VerificationResult> &verificationResult)
ParameterTypBeskrivning
signNameconst System::SharedPtr<SignatureName>&Namnet på signaturen.
verificationResultSystem::SharedPtr<Security::VerificationResult>&Resultatet av verifieringen.

ReturnValue

Returnerar true om signaturen behandlades korrekt. Returnerar false om ett fel inträffade under verifieringsprocessen eller om signaturen var korrupt eller komprometterad.

Se även