Class ProtectionPolicy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getEncryptionKeyLength()
      Get the length of the secrete key that will be used to encrypt document data.
      void setEncryptionKeyLength​(int l)
      set the length in (bits) of the secret key that will be used to encrypt document data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • encryptionKeyLength

        private int encryptionKeyLength
    • Constructor Detail

      • ProtectionPolicy

        public ProtectionPolicy()
    • Method Detail

      • setEncryptionKeyLength

        public void setEncryptionKeyLength​(int l)
        set the length in (bits) of the secret key that will be used to encrypt document data. The default value is 40 bits, which provides a low security level but is compatible with old versions of Acrobat Reader.
        Parameters:
        l - the length in bits (must be 40, 128 or 256)
      • getEncryptionKeyLength

        public int getEncryptionKeyLength()
        Get the length of the secrete key that will be used to encrypt document data.
        Returns:
        The length (in bits) of the encryption key.