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

MethodDescription
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:

ParameterTypeDescription
indexint

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:

ParameterTypeDescription
signatureIDigitalSignatureSignature to add.

removeAt(int index)

public final void removeAt(int index)

Removes the signature at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex 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:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array.
indexintStarting index in the target array.