Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate metod

PdfFileSignature::TryExtractCertificate(const System::SharedPtr<SignatureName>&, System::SharedPtr<System::IO::Stream>&) method

Extraherar signaturens enda X.509‑certifikat som en ström.

bool Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<System::IO::Stream> &stream)
ParameterTypBeskrivning
signNameconst System::SharedPtr<SignatureName>&Namnet på signaturen.
strömSystem::SharedPtr<System::IO::Stream>&Om ett certifikat hittades returneras X.509‑certifikatström; annars null.

ReturnValue

Ett riktigt certifikat hittades.

Se även

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

Extraherar signaturens enda X.509‑certifikat.

bool Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &certificate)
ParameterTypBeskrivning
signNameconst System::SharedPtr<SignatureName>&Namnet på signaturen.
certificateSystem::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&Om ett certifikat hittades returneras X.509‑certifikatobjekt; annars null.

ReturnValue

Ett riktigt certifikat hittades.

Se även