public class DigitalSignatureCollection
extends java.lang.Object
implements java.lang.Iterable
Example
The following example shows how to validate digital signature.
//workbook from a signed source file
Workbook signedWorkbook = new Workbook("signedFile.xlsx");
//wb.IsDigitallySigned is true when the workbook is signed already.
System.out.println(signedWorkbook.isDigitallySigned());
//get digitalSignature collection from workbook
DigitalSignatureCollection existingDsc = signedWorkbook.getDigitalSignature();
for (DigitalSignature existingDs : (Iterable<DigitalSignature>) existingDsc)
{
System.out.println(existingDs.getComments());
System.out.println(existingDs.getSignTime());
System.out.println(existingDs.isValid());
}
| Constructor and Description |
|---|
DigitalSignatureCollection()
The constructor of DigitalSignatureCollection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DigitalSignature digitalSignature)
Add one signature to DigitalSignatureCollection.
|
java.util.Iterator |
iterator()
Get the enumerator for DigitalSignatureCollection,
this enumerator allows iteration over the collection
|
public DigitalSignatureCollection()
public void add(DigitalSignature digitalSignature)
digitalSignature - Digital signature in collection.public java.util.Iterator iterator()
iterator in interface java.lang.IterableSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.