com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IDigitalSignatureCollection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void add(IDigitalSignature digitalSignature)
      Adds the signature at the end of collection.
      void clear()
      Removes all signatures from collection.
      IDigitalSignature get_Item(int index)
      Returns the signature by index.
      void removeAt(int index)
      Removes the signature at the specified index.
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
      • Methods inherited from interface com.aspose.ms.System.Collections.ICollection

        copyTo, getSyncRoot, isSynchronized, size
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • add

        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:
        digitalSignature - Signature to add.
      • removeAt

        void removeAt(int index)

        Removes the signature at the specified index.

        Parameters:
        index - Index of the signature that should be deleted.
      • clear

        void clear()

        Removes all signatures from collection.