DigitalSignatureCollection
Inheritance: java.lang.Object, com.aspose.slides.DomObject
All Implemented Interfaces: com.aspose.slides.IDigitalSignatureCollection
public class DigitalSignatureCollection extends DomObject<Presentation> implements IDigitalSignatureCollection
Represents a collection of digital signatures attached to a document.
Methods
Method | Description |
---|---|
get_Item(int index) | Returns the signature by index. |
add(IDigitalSignature signature) | Adds the signature at the end of collection. |
removeAt(int index) | Removes the signature at the specified index. |
clear() | Removes all signatures from collection. |
iterator() | Returns an enumerator that iterates through the collection. |
iteratorJava() | Returns a java iterator for the entire collection. |
size() | Returns the number of elements in the collection. |
isSynchronized() | Returns a value indicating whether access to the collection is synchronized (thread-safe). |
getSyncRoot() | Returns a synchronization root. |
copyTo(System.Array array, int index) | Copies all elements from the collection to the specified array. |
get_Item(int index)
public final IDigitalSignature get_Item(int index)
Returns the signature by index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
Returns: IDigitalSignature
add(IDigitalSignature signature)
public final void add(IDigitalSignature signature)
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 |
---|---|---|
signature | IDigitalSignature | Signature to add. |
removeAt(int index)
public final 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 final void clear()
Removes all signatures from collection.
iterator()
public final System.Collections.Generic.IGenericEnumerator<IDigitalSignature> iterator()
Returns an enumerator that iterates through the collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IDigitalSignature> - A IGenericEnumerator that can be used to iterate through the collection.
iteratorJava()
public final System.Collections.Generic.IGenericEnumerator<IDigitalSignature> iteratorJava()
Returns a java iterator for the entire collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IDigitalSignature> - An java.util.Iterator for the entire collection.
size()
public final int size()
Returns the number of elements in the collection. Read-only int.
Returns: int
isSynchronized()
public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.
Returns: boolean
getSyncRoot()
public final Object getSyncRoot()
Returns a synchronization root. Read-only Object.
Returns: java.lang.Object
copyTo(System.Array array, int index)
public final void copyTo(System.Array array, int index)
Copies all elements from the collection to the specified array.
Parameters:
Parameter | Type | Description |
---|---|---|
array | com.aspose.ms.System.Array | Target array. |
index | int | Starting index in the target array. |