Aspose::Pdf::Facades::PdfFileSignature::TryExtractCertificate method
Contents
[
Hide
]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)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::SharedPtr<SignatureName>& | The name of signature. |
| stream | System::SharedPtr<System::IO::Stream>& | If a certificate was found returns X.509 single certificate stream; otherwise, null. |
ReturnValue
True certificate was found.
See Also
- Typedef SharedPtr
- Class SignatureName
- Class Stream
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| signName | const System::SharedPtr<SignatureName>& | The name of signature. |
| certificate | System::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
- Typedef SharedPtr
- Class SignatureName
- Class X509Certificate2
- Class PdfFileSignature
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++