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

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

ParameterTypeDescription
indexint

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:

ParameterTypeDescription
digitalSignatureIDigitalSignatureSignature to add.

removeAt(int index)

public abstract void removeAt(int index)

Removes the signature at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of the signature that should be deleted.

clear()

public abstract void clear()

Removes all signatures from collection.