Enum ContentEncryption

    • Enum Constant Detail

      • ALL_CONTENT

        public static final ContentEncryption ALL_CONTENT
        Encrypts all the content of the PDF file
      • ALL_CONTENT_EXCEPT_METADATA

        public static final ContentEncryption ALL_CONTENT_EXCEPT_METADATA
        Encrypts all the content except the metadata of the PDF file
      • ONLY_EMBEDDED_FILES

        public static final ContentEncryption ONLY_EMBEDDED_FILES
        Encrypts only embedded files
    • Method Detail

      • values

        public static ContentEncryption[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ContentEncryption c : ContentEncryption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ContentEncryption valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Returns the value of the type of content to encrypt
        Returns:
        string value of the type of content to encrypt