Enum Class PDFEncryptionJCE.Permission

java.lang.Object
java.lang.Enum<PDFEncryptionJCE.Permission>
org.apache.fop.pdf.PDFEncryptionJCE.Permission
All Implemented Interfaces:
Serializable, Comparable<PDFEncryptionJCE.Permission>, Constable
Enclosing class:
PDFEncryptionJCE

private static enum PDFEncryptionJCE.Permission extends Enum<PDFEncryptionJCE.Permission>
  • Enum Constant Details

  • Field Details

    • mask

      private final int mask
  • Constructor Details

    • Permission

      private Permission(int bit)
      Creates a new permission.
      Parameters:
      bit - bit position for this permission, 1-based to match the PDF Reference
  • Method Details

    • values

      public static PDFEncryptionJCE.Permission[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PDFEncryptionJCE.Permission valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • removeFrom

      private int removeFrom(int permissions)
    • computePermissions

      static int computePermissions(PDFEncryptionParams encryptionParams)