Class OperationPasswordEncrypt


  • public class OperationPasswordEncrypt
    extends Object
    Used to set the password for encryption and the encryption key length.
    • Constructor Detail

      • OperationPasswordEncrypt

        public OperationPasswordEncrypt()
    • Method Detail

      • getEncryptionKey

        @Nullable
        public @Nullable OperationPasswordEncrypt.EncryptionKeyEnum getEncryptionKey()
        Sets the encryption level for the document. * RC4\\_40 = 40-bit RC4 * RC4\\_128 = 128-bit RC4 * AES\\_128 = 128-bit AES * AES\\_256 = 256-bit AES **Important:** Please note that the option \"256-bit AES\" only works if the \"Java Cryptography Extension (JCE)\" has been enabled with \"Unlimited Strength\" in the JVM. You can obtain the modified \"Policy Files\" (along with instructions for installation) from the Oracle website: Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 Download: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
        Returns:
        encryptionKey
      • getOpen

        @Nullable
        public @Nullable String getOpen()
        Used to set the password that will be requested if the PDF document is opened for reading.
        Returns:
        open
      • setOpen

        public void setOpen​(String open)
      • getPermission

        @Nullable
        public @Nullable String getPermission()
        Used to set the password that will be requested if the file is opened for editing (e.g., when removing pages). The password is required to enable the individual access permissions and must not be blank if the access permissions are to be used. **Important:** Please note that the password and the associated access permissions will only provide protection if an appropriate display program for PDF documents takes these settings into account.
        Returns:
        permission
      • setPermission

        public void setPermission​(String permission)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object