Package org.apache.fop.pdf
Enum Class PDFEncryptionJCE.Permission
- All Implemented Interfaces:
Serializable
,Comparable<PDFEncryptionJCE.Permission>
,Constable
- Enclosing class:
- PDFEncryptionJCE
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static int
computePermissions
(PDFEncryptionParams encryptionParams) private int
removeFrom
(int permissions) static PDFEncryptionJCE.Permission
Returns the enum constant of this class with the specified name.static PDFEncryptionJCE.Permission[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRINT
-
EDIT_CONTENT
-
COPY_CONTENT
-
EDIT_ANNOTATIONS
-
FILL_IN_FORMS
-
ACCESS_CONTENT
-
ASSEMBLE_DOCUMENT
-
PRINT_HQ
-
-
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
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
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 nameNullPointerException
- if the argument is null
-
removeFrom
private int removeFrom(int permissions) -
computePermissions
-