Package net.webpdf.wsclient.openapi
Class OperationEncryptCertificate
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationEncryptCertificate
-
public class OperationEncryptCertificate extends Object
These parameters can be used to set the asymmetric encryption of a PDF document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationEncryptCertificate.ContentEncryptionEnumSpecifies whether certain contents should be treated differently than others during encryptionstatic classOperationEncryptCertificate.EncryptionKeyEnumSets the encryption level for the document
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTENT_ENCRYPTIONstatic StringJSON_PROPERTY_ENCRYPTION_KEYstatic StringJSON_PROPERTY_RECIPIENT
-
Constructor Summary
Constructors Constructor Description OperationEncryptCertificate()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_CONTENT_ENCRYPTION
public static final String JSON_PROPERTY_CONTENT_ENCRYPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENCRYPTION_KEY
public static final String JSON_PROPERTY_ENCRYPTION_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECIPIENT
public static final String JSON_PROPERTY_RECIPIENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
contentEncryption
public OperationEncryptCertificate contentEncryption(OperationEncryptCertificate.ContentEncryptionEnum contentEncryption)
-
getContentEncryption
@Nullable public @Nullable OperationEncryptCertificate.ContentEncryptionEnum getContentEncryption()
Specifies whether certain contents should be treated differently than others during encryption. * encryptEverything = All contents of the document are encrypted without distinction (if provided by the standard). * exposeMetadata = The document's metadata is left unencrypted to make it discoverable by processing programs. (Has an effect only for 128 bit and 256 bit AES).- Returns:
- contentEncryption
-
setContentEncryption
public void setContentEncryption(OperationEncryptCertificate.ContentEncryptionEnum contentEncryption)
-
encryptionKey
public OperationEncryptCertificate encryptionKey(OperationEncryptCertificate.EncryptionKeyEnum encryptionKey)
-
getEncryptionKey
@Nullable public @Nullable OperationEncryptCertificate.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
-
setEncryptionKey
public void setEncryptionKey(OperationEncryptCertificate.EncryptionKeyEnum encryptionKey)
-
recipient
public OperationEncryptCertificate recipient(List<OperationRecipient> recipient)
-
addRecipientItem
public OperationEncryptCertificate addRecipientItem(OperationRecipient recipientItem)
-
getRecipient
@NotNull public @NotNull List<OperationRecipient> getRecipient()
Get recipient- Returns:
- recipient
-
setRecipient
public void setRecipient(List<OperationRecipient> recipient)
-
-