Aspose::Words::DigitalSignatures::DigitalSignature::get_SignTime method
Contents
[
Hide
]DigitalSignature::get_SignTime method
Gets the time the document was signed.
System::DateTime Aspose::Words::DigitalSignatures::DigitalSignature::get_SignTime() const
Examples
Shows how to validate and display information about each signature in a document.
auto doc = MakeObject<Document>(MyDir + u"Digitally signed.docx");
for (const auto& signature : doc->get_DigitalSignatures())
{
std::cout << (signature->get_IsValid() ? String(u"Valid") : String(u"Invalid")) << " signature: " << std::endl;
std::cout << "\tReason:\t" << signature->get_Comments() << std::endl;
std::cout << String::Format(u"\tType:\t{0}", signature->get_SignatureType()) << std::endl;
std::cout << "\tSign time:\t" << signature->get_SignTime() << std::endl;
std::cout << "\tSubject name:\t" << signature->get_CertificateHolder()->get_Certificate()->get_SubjectName() << std::endl;
std::cout << "\tIssuer name:\t" << signature->get_CertificateHolder()->get_Certificate()->get_IssuerName()->get_Name() << std::endl;
std::cout << std::endl;
}
See Also
- Class DigitalSignature
- Namespace Aspose::Words::DigitalSignatures
- Library Aspose.Words for C++