Package com.itextpdf.kernel.pdf
Class EncryptionConstants
java.lang.Object
com.itextpdf.kernel.pdf.EncryptionConstants
Encryption constants for
WriterProperties.setStandardEncryption(byte[], byte[], int, int)
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The operation permitted when the document is opened with the user password.static final int
The operation permitted when the document is opened with the user password.static final int
The operation permitted when the document is opened with the user password.static final int
The operation permitted when the document is opened with the user password.static final int
The operation permitted when the document is opened with the user password.static final int
The operation permitted when the document is opened with the user password.static final int
The operation permitted when the document is opened with the user password.static final int
The operation permitted when the document is opened with the user password.static final int
Add this to the mode to keep the metadata in clear text.static final int
Add this to the mode to keep encrypt only the embedded files.static final int
Type of encryption.static final int
Type of encryption.static final int
Type of encryption.static final int
Type of encryption.static final int
Type of encryption. -
Method Summary
-
Field Details
-
STANDARD_ENCRYPTION_40
public static final int STANDARD_ENCRYPTION_40Type of encryption. RC4 encryption algorithm will be used with the key length of 40 bits.- See Also:
-
STANDARD_ENCRYPTION_128
public static final int STANDARD_ENCRYPTION_128Type of encryption. RC4 encryption algorithm will be used with the key length of 128 bits.- See Also:
-
ENCRYPTION_AES_128
public static final int ENCRYPTION_AES_128Type of encryption. AES encryption algorithm will be used with the key length of 128 bits.- See Also:
-
ENCRYPTION_AES_256
public static final int ENCRYPTION_AES_256Type of encryption. AES encryption algorithm will be used with the key length of 256 bits.- See Also:
-
ENCRYPTION_AES_GCM
public static final int ENCRYPTION_AES_GCMType of encryption. Advanced Encryption Standard-Galois/Counter Mode (AES-GCM) encryption algorithm.- See Also:
-
DO_NOT_ENCRYPT_METADATA
public static final int DO_NOT_ENCRYPT_METADATAAdd this to the mode to keep the metadata in clear text.- See Also:
-
EMBEDDED_FILES_ONLY
public static final int EMBEDDED_FILES_ONLYAdd this to the mode to keep encrypt only the embedded files.- See Also:
-
ALLOW_PRINTING
public static final int ALLOW_PRINTINGThe operation permitted when the document is opened with the user password.- See Also:
-
ALLOW_MODIFY_CONTENTS
public static final int ALLOW_MODIFY_CONTENTSThe operation permitted when the document is opened with the user password.- See Also:
-
ALLOW_COPY
public static final int ALLOW_COPYThe operation permitted when the document is opened with the user password.- See Also:
-
ALLOW_MODIFY_ANNOTATIONS
public static final int ALLOW_MODIFY_ANNOTATIONSThe operation permitted when the document is opened with the user password.- See Also:
-
ALLOW_FILL_IN
public static final int ALLOW_FILL_INThe operation permitted when the document is opened with the user password.- See Also:
-
ALLOW_SCREENREADERS
public static final int ALLOW_SCREENREADERSThe operation permitted when the document is opened with the user password.- See Also:
-
ALLOW_ASSEMBLY
public static final int ALLOW_ASSEMBLYThe operation permitted when the document is opened with the user password.- See Also:
-
ALLOW_DEGRADED_PRINTING
public static final int ALLOW_DEGRADED_PRINTINGThe operation permitted when the document is opened with the user password.- See Also:
-