Enum ContentEncryption
- java.lang.Object
-
- java.lang.Enum<ContentEncryption>
-
- com.adobe.pdfservices.operation.pdfjobs.params.protectpdf.ContentEncryption
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentEncryption>
public enum ContentEncryption extends Enum<ContentEncryption>
Supported types of content to encrypt forProtectPDFJob
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_CONTENT
Encrypts all the content of the PDF fileALL_CONTENT_EXCEPT_METADATA
Encrypts all the content except the metadata of the PDF fileONLY_EMBEDDED_FILES
Encrypts only embedded files
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Returns the value of the type of content to encryptstatic ContentEncryption
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentEncryption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- 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
-
-