com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IDigitalSignature

  • All Known Implementing Classes:
    DigitalSignature


    public interface IDigitalSignature

    Digital signature in signed file.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      byte[] getCertificate()
      Certificate object that was used to sign the document.
      java.lang.String getComments()
      The purpose of signature.
      java.util.Date getSignTime()
      The time when the document was signed.
      boolean isValid()
      If this digital signature is valid and the document has not been tampered with, this value will be true.
      void setComments(java.lang.String value)
      The purpose of signature.
    • Method Detail

      • getCertificate

        byte[] getCertificate()

        Certificate object that was used to sign the document. Read-only byte[].

      • isValid

        boolean isValid()

        If this digital signature is valid and the document has not been tampered with, this value will be true. Read-only boolean.


         
         Presentation pres = new Presentation("SomePresentationSigned.pptx");
         try
         {
             for (IDigitalSignature signature : pres.getDigitalSignatures())
                 System.out.println("Signature check: " + (signature.isValid() ? "VALID" : "INVALID"));
         } finally {
             if (pres != null) pres.dispose();
         }
         
      • getSignTime

        java.util.Date getSignTime()

        The time when the document was signed. Read-only Date.


         
         Presentation pres = new Presentation("SomePresentationSigned.pptx");
         try
         {
             for (IDigitalSignature signature : pres.getDigitalSignatures())
                 System.out.println("Signature check: " + (signature.IsValid ? "VALID" : "INVALID") + ", Signing time: " + signature.getSignTime());
         } finally {
             if (pres != null) pres.dispose();
         }
         
      • getComments

        java.lang.String getComments()

        The purpose of signature. Read/write String.

      • setComments

        void setComments(java.lang.String value)

        The purpose of signature. Read/write String.