IDigitalSignatureCollection
All Implemented Interfaces: com.aspose.slides.IGenericCollection
public interface IDigitalSignatureCollection extends IGenericCollection<IDigitalSignature>
Represents a collection of digital signatures attached to a document.
Methods
Method | Description |
---|---|
get_Item(int index) | Returns the signature by index. |
add(IDigitalSignature digitalSignature) | Adds the signature at the end of collection. |
removeAt(int index) | Removes the signature at the specified index. |
clear() | Removes all signatures from collection. |
get_Item(int index)
public abstract IDigitalSignature get_Item(int index)
Returns the signature by index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
Returns: IDigitalSignature
add(IDigitalSignature digitalSignature)
public abstract void add(IDigitalSignature digitalSignature)
Adds the signature at the end of collection.
Presentation pres = new Presentation(); try { DigitalSignature signature = new DigitalSignature("testsignature1.pfx", "testpass1"); signature.setComments("Aspose.Slides digital signing test."); pres.getDigitalSignatures().add(signature); pres.save("SomePresentationSigned.pptx", SaveFormat.Pptx); } finally { if (pres != null) pres.dispose(); }
Parameters:
Parameter | Type | Description |
---|---|---|
digitalSignature | IDigitalSignature | Signature to add. |
removeAt(int index)
public abstract void removeAt(int index)
Removes the signature at the specified index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of the signature that should be deleted. |
clear()
public abstract void clear()
Removes all signatures from collection.