Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate метод

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

Извлекает единственный сертификат X.509 подписи в виде потока.

bool Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<System::IO::Stream> &stream)
ПараметрТипОписание
signNameconst System::SharedPtr<SignatureName>&Имя подписи.
потокSystem::SharedPtr<System::IO::Stream>&Если сертификат найден, возвращает поток единственного сертификата X.509; в противном случае — null.

ReturnValue

Найден действительный сертификат.

См. также

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

Извлекает единственный сертификат X.509 подписи.

bool Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &certificate)
ПараметрТипОписание
signNameconst System::SharedPtr<SignatureName>&Имя подписи.
сертификатSystem::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&Если сертификат найден, возвращает объект единственного сертификата X.509; в противном случае — null.

ReturnValue

Найден действительный сертификат.

См. также