com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class DigitalSignatureCollection

  • java.lang.Object
    • com.aspose.slides.DigitalSignatureCollection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • add

        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();
         }
         
        Specified by:
        add in interface IDigitalSignatureCollection
        Parameters:
        signature - Signature to add.
      • removeAt

        public final void removeAt(int index)

        Removes the signature at the specified index.

        Specified by:
        removeAt in interface IDigitalSignatureCollection
        Parameters:
        index - Index of the signature that should be deleted.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDigitalSignature> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IDigitalSignature>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IDigitalSignature>
        Specified by:
        iterator in interface java.lang.Iterable<IDigitalSignature>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • size

        public final int size()

        Returns the number of elements in the collection. Read-only int.

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>
      • isSynchronized

        public final boolean isSynchronized()

        Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>
      • getSyncRoot

        public final java.lang.Object getSyncRoot()

        Returns a synchronization root. Read-only Object.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>
      • copyTo

        public final void copyTo(com.aspose.ms.System.Array array,
                                 int index)

        Copies all elements from the collection to the specified array.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<IDigitalSignature>
        Parameters:
        array - Target array.
        index - Starting index in the target array.
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.