public class DigitalSignatureCollection extends DomObject<Presentation> implements IDigitalSignatureCollection
Represents a collection of digital signatures attached to a document.
| Modifier and Type | Method and Description |
|---|---|
void |
add(IDigitalSignature signature)
Adds the signature at the end of collection.
|
void |
clear()
Removes all signatures from collection.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
IDigitalSignature |
get_Item(int index)
Returns the signature by index.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDigitalSignature> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDigitalSignature> |
iteratorJava()
Returns a java iterator for the entire collection.
|
void |
removeAt(int index)
Removes the signature at the specified index.
|
int |
size()
Returns the number of elements in the collection.
|
getParent_Immediatepublic final IDigitalSignature get_Item(int index)
Returns the signature by index.
get_Item in interface IDigitalSignatureCollectionpublic 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(); }
add in interface IDigitalSignatureCollectionsignature - Signature to add.public final void removeAt(int index)
Removes the signature at the specified index.
removeAt in interface IDigitalSignatureCollectionindex - Index of the signature that should be deleted.public final void clear()
Removes all signatures from collection.
clear in interface IDigitalSignatureCollectionpublic final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDigitalSignature> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IDigitalSignature>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IDigitalSignature>iterator in interface java.lang.Iterable<IDigitalSignature>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDigitalSignature> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IDigitalSignature>Iterator for the entire collection.public final int size()
Returns the number of elements in the collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
copyTo in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>array - Target array.index - Starting index in the target array.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.