Class SignaturePermissions


  • public class SignaturePermissions
    extends java.lang.Object
    A helper class that tells you more about the type of signature (certification or approval) and the signature's DMP settings.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  SignaturePermissions.FieldLock
      Class that contains a field lock action and an array of the fields that are involved.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean annotationsAllowed
      Is adding annotations allowed by this signature?
      (package private) boolean certification
      Is the signature a cerification signature (true) or an approval signature (false)?
      (package private) java.util.List<SignaturePermissions.FieldLock> fieldLocks
      Does this signature lock specific fields?
      (package private) boolean fillInAllowed
      Is form filling allowed by this signature?
    • Constructor Summary

      Constructors 
      Constructor Description
      SignaturePermissions​(PdfDictionary sigDict, SignaturePermissions previous)
      Creates an object that can inform you about the type of signature in a signature dictionary as well as some of the permissions defined by the signature.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<SignaturePermissions.FieldLock> getFieldLocks()
      Getter for the field lock actions, and fields that are impacted by the action
      boolean isAnnotationsAllowed()
      Getter to find out if adding annotations is allowed after signing.
      boolean isCertification()
      Getter to find out if the signature is a certification signature.
      boolean isFillInAllowed()
      Getter to find out if filling out fields is allowed after signing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • certification

        boolean certification
        Is the signature a cerification signature (true) or an approval signature (false)?
      • fillInAllowed

        boolean fillInAllowed
        Is form filling allowed by this signature?
      • annotationsAllowed

        boolean annotationsAllowed
        Is adding annotations allowed by this signature?
    • Constructor Detail

      • SignaturePermissions

        public SignaturePermissions​(PdfDictionary sigDict,
                                    SignaturePermissions previous)
        Creates an object that can inform you about the type of signature in a signature dictionary as well as some of the permissions defined by the signature.
    • Method Detail

      • isCertification

        public boolean isCertification()
        Getter to find out if the signature is a certification signature.
        Returns:
        true if the signature is a certification signature, false for an approval signature.
      • isFillInAllowed

        public boolean isFillInAllowed()
        Getter to find out if filling out fields is allowed after signing.
        Returns:
        true if filling out fields is allowed
      • isAnnotationsAllowed

        public boolean isAnnotationsAllowed()
        Getter to find out if adding annotations is allowed after signing.
        Returns:
        true if adding annotations is allowed
      • getFieldLocks

        public java.util.List<SignaturePermissions.FieldLock> getFieldLocks()
        Getter for the field lock actions, and fields that are impacted by the action
        Returns:
        an Array with field names