Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate method

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

Extracts signature’s single X.509 certificate as a stream.

bool Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<System::IO::Stream> &stream)
ParameterTypeDescription
signNameconst System::SharedPtr<SignatureName>&The name of signature.
streamSystem::SharedPtr<System::IO::Stream>&If a certificate was found returns X.509 single certificate stream; otherwise, null.

ReturnValue

True certificate was found.

See Also

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

Extracts signature’s single X.509 certificate.

bool Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate(const System::SharedPtr<SignatureName> &signName, System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2> &certificate)
ParameterTypeDescription
signNameconst System::SharedPtr<SignatureName>&The name of signature.
certificateSystem::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&If a certificate was found returns X.509 single certificate object; otherwise, null.

ReturnValue

True certificate was found.

See Also