Package com.itextpdf.kernel.pdf
Class EncryptionConstants
- java.lang.Object
-
- com.itextpdf.kernel.pdf.EncryptionConstants
-
public final class EncryptionConstants extends java.lang.Object
Encryption constants forWriterProperties.setStandardEncryption(byte[], byte[], int, int)
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALLOW_ASSEMBLY
The operation is permitted when the document is opened with the user password.static int
ALLOW_COPY
The operation is permitted when the document is opened with the user password.static int
ALLOW_DEGRADED_PRINTING
The operation is permitted when the document is opened with the user password.static int
ALLOW_FILL_IN
The operation is permitted when the document is opened with the user password.static int
ALLOW_MODIFY_ANNOTATIONS
The operation is permitted when the document is opened with the user password.static int
ALLOW_MODIFY_CONTENTS
The operation is permitted when the document is opened with the user password.static int
ALLOW_PRINTING
The operation is permitted when the document is opened with the user password.static int
ALLOW_SCREENREADERS
The operation is permitted when the document is opened with the user password.static int
DO_NOT_ENCRYPT_METADATA
Add this to the mode to keep the metadata in clear text.static int
EMBEDDED_FILES_ONLY
Add this to the mode to encrypt only the embedded files.static int
ENCRYPTION_AES_128
Type of encryption.static int
ENCRYPTION_AES_256
Type of encryption.static int
ENCRYPTION_AES_GCM
Type of encryption.(package private) static int
ENCRYPTION_MASK
Mask to separate the encryption type from the encryption mode.static int
STANDARD_ENCRYPTION_128
Type of encryption.static int
STANDARD_ENCRYPTION_40
Type of encryption.
-
Constructor Summary
Constructors Modifier Constructor Description private
EncryptionConstants()
-
-
-
Field Detail
-
STANDARD_ENCRYPTION_40
public static final int STANDARD_ENCRYPTION_40
Type of encryption. RC4 encryption algorithm will be used with the key length of 40 bits.- See Also:
- Constant Field Values
-
STANDARD_ENCRYPTION_128
public static final int STANDARD_ENCRYPTION_128
Type of encryption. RC4 encryption algorithm will be used with the key length of 128 bits.- See Also:
- Constant Field Values
-
ENCRYPTION_AES_128
public static final int ENCRYPTION_AES_128
Type of encryption. AES encryption algorithm will be used with the key length of 128 bits.- See Also:
- Constant Field Values
-
ENCRYPTION_AES_256
public static final int ENCRYPTION_AES_256
Type of encryption. AES encryption algorithm will be used with the key length of 256 bits.- See Also:
- Constant Field Values
-
ENCRYPTION_AES_GCM
public static final int ENCRYPTION_AES_GCM
Type of encryption. Advanced Encryption Standard-Galois/Counter Mode (AES-GCM) encryption algorithm.- See Also:
- Constant Field Values
-
DO_NOT_ENCRYPT_METADATA
public static final int DO_NOT_ENCRYPT_METADATA
Add this to the mode to keep the metadata in clear text.- See Also:
- Constant Field Values
-
EMBEDDED_FILES_ONLY
public static final int EMBEDDED_FILES_ONLY
Add this to the mode to encrypt only the embedded files.- See Also:
- Constant Field Values
-
ALLOW_PRINTING
public static final int ALLOW_PRINTING
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ALLOW_MODIFY_CONTENTS
public static final int ALLOW_MODIFY_CONTENTS
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ALLOW_COPY
public static final int ALLOW_COPY
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ALLOW_MODIFY_ANNOTATIONS
public static final int ALLOW_MODIFY_ANNOTATIONS
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ALLOW_FILL_IN
public static final int ALLOW_FILL_IN
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ALLOW_SCREENREADERS
public static final int ALLOW_SCREENREADERS
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ALLOW_ASSEMBLY
public static final int ALLOW_ASSEMBLY
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ALLOW_DEGRADED_PRINTING
public static final int ALLOW_DEGRADED_PRINTING
The operation is permitted when the document is opened with the user password.- See Also:
- Constant Field Values
-
ENCRYPTION_MASK
static final int ENCRYPTION_MASK
Mask to separate the encryption type from the encryption mode.- See Also:
- Constant Field Values
-
-