Package com.itextpdf.kernel.pdf
Class EncryptionConstants
- java.lang.Object
-
- com.itextpdf.kernel.pdf.EncryptionConstants
-
public final class EncryptionConstants extends java.lang.ObjectEncryption constants forWriterProperties.setStandardEncryption(byte[], byte[], int, int).
-
-
Field Summary
Fields Modifier and Type Field Description static intALLOW_ASSEMBLYThe operation is permitted when the document is opened with the user password.static intALLOW_COPYThe operation is permitted when the document is opened with the user password.static intALLOW_DEGRADED_PRINTINGThe operation is permitted when the document is opened with the user password.static intALLOW_FILL_INThe operation is permitted when the document is opened with the user password.static intALLOW_MODIFY_ANNOTATIONSThe operation is permitted when the document is opened with the user password.static intALLOW_MODIFY_CONTENTSThe operation is permitted when the document is opened with the user password.static intALLOW_PRINTINGThe operation is permitted when the document is opened with the user password.static intALLOW_SCREENREADERSThe operation is permitted when the document is opened with the user password.static intDO_NOT_ENCRYPT_METADATAAdd this to the mode to keep the metadata in clear text.static intEMBEDDED_FILES_ONLYAdd this to the mode to encrypt only the embedded files.static intENCRYPTION_AES_128Type of encryption.static intENCRYPTION_AES_256Type of encryption.static intENCRYPTION_AES_GCMType of encryption.(package private) static intENCRYPTION_MASKMask to separate the encryption type from the encryption mode.static intSTANDARD_ENCRYPTION_128Type of encryption.static intSTANDARD_ENCRYPTION_40Type of encryption.
-
Constructor Summary
Constructors Modifier Constructor Description privateEncryptionConstants()
-
-
-
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
-
-