DigitalSignatureCollection类

DigitalSignatureCollection类

提供附加到文档的数字签名的集合。

DigitalSignatureCollection 类型公开了以下成员:

构造器

构造器描述
DigitalSignatureCollection()DigitalSignatureCollection 的构造函数。

方法

方法描述
add(digital_signature)向 DigitalSignatureCollection 添加一个签名。

例子

以下示例显示如何验证数字签名。

from aspose.cells import Workbook

# workbook from a signed source file
signedWorkbook = Workbook(r"signedFile.xlsx")
# wb.IsDigitallySigned is true when the workbook is signed already.
print(signedWorkbook.is_digitally_signed)
# get digitalSignature collection from workbook
existingDsc = signedWorkbook.get_digital_signature()
for existingDs in existingDsc:
    print(existingDs.comments)
    print(existingDs.sign_time)
    print(existingDs.is_valid)

也可以看看