Package org.apache.fop.pdf
Enum PDFEncryptionJCE.Permission
- java.lang.Object
-
- java.lang.Enum<PDFEncryptionJCE.Permission>
-
- org.apache.fop.pdf.PDFEncryptionJCE.Permission
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PDFEncryptionJCE.Permission>
- Enclosing class:
- PDFEncryptionJCE
private static enum PDFEncryptionJCE.Permission extends java.lang.Enum<PDFEncryptionJCE.Permission>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_CONTENT
ASSEMBLE_DOCUMENT
COPY_CONTENT
EDIT_ANNOTATIONS
EDIT_CONTENT
FILL_IN_FORMS
PRINT
PRINT_HQ
-
Field Summary
Fields Modifier and Type Field Description private int
mask
-
Constructor Summary
Constructors Modifier Constructor Description private
Permission(int bit)
Creates a new permission.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static int
computePermissions(PDFEncryptionParams encryptionParams)
private int
removeFrom(int permissions)
static PDFEncryptionJCE.Permission
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PDFEncryptionJCE.Permission[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRINT
public static final PDFEncryptionJCE.Permission PRINT
-
EDIT_CONTENT
public static final PDFEncryptionJCE.Permission EDIT_CONTENT
-
COPY_CONTENT
public static final PDFEncryptionJCE.Permission COPY_CONTENT
-
EDIT_ANNOTATIONS
public static final PDFEncryptionJCE.Permission EDIT_ANNOTATIONS
-
FILL_IN_FORMS
public static final PDFEncryptionJCE.Permission FILL_IN_FORMS
-
ACCESS_CONTENT
public static final PDFEncryptionJCE.Permission ACCESS_CONTENT
-
ASSEMBLE_DOCUMENT
public static final PDFEncryptionJCE.Permission ASSEMBLE_DOCUMENT
-
PRINT_HQ
public static final PDFEncryptionJCE.Permission PRINT_HQ
-
-
Method Detail
-
values
public static PDFEncryptionJCE.Permission[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PDFEncryptionJCE.Permission c : PDFEncryptionJCE.Permission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PDFEncryptionJCE.Permission valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
removeFrom
private int removeFrom(int permissions)
-
computePermissions
static int computePermissions(PDFEncryptionParams encryptionParams)
-
-