Class EncryptCertificateType
- java.lang.Object
-
- net.webpdf.wsclient.schema.operation.EncryptCertificateType
-
public class EncryptCertificateType extends Object
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p881634_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p918570_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">These parameters can be used to set the asymmetric encryption of a PDF document.</p>
Java class for EncryptCertificateType complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="EncryptCertificateType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="recipient" type="{http://schema.webpdf.de/1.0/operation}RecipientType" maxOccurs="unbounded"/> </sequence> <attribute name="encryptionKey" type="{http://schema.webpdf.de/1.0/operation}PdfEncryptionKeyType" default="RC4_128" /> <attribute name="contentEncryption" type="{http://schema.webpdf.de/1.0/operation}PdfContentEncryptionType" default="encryptEverything" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected PdfContentEncryptionTypecontentEncryption<?protected PdfEncryptionKeyTypeencryptionKey<?protected List<RecipientType>recipient
-
Constructor Summary
Constructors Constructor Description EncryptCertificateType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfContentEncryptionTypegetContentEncryption()<?PdfEncryptionKeyTypegetEncryptionKey()<?List<RecipientType>getRecipient()Gets the value of the recipient property.booleanisSetContentEncryption()booleanisSetEncryptionKey()booleanisSetRecipient()voidsetContentEncryption(PdfContentEncryptionType value)Sets the value of the contentEncryption property.voidsetEncryptionKey(PdfEncryptionKeyType value)Sets the value of the encryptionKey property.voidunsetRecipient()
-
-
-
Field Detail
-
recipient
protected List<RecipientType> recipient
-
encryptionKey
protected PdfEncryptionKeyType encryptionKey
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p881634_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p918570_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Sets the encryption level for the document. <ul><li>RC4_40 = 40-bit RC4</li><li>RC4_128 = 128-bit RC4</li><li>AES_128 = 128-bit AES</li><li>AES_256 = 256-bit AES</li></ul></p><?xml version="1.0" encoding="UTF-8"?><p xmlns:p881634_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p918570_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b>Important:</b> 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 </p>
-
contentEncryption
protected PdfContentEncryptionType contentEncryption
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p881634_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p918570_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Specifies whether certain contents should be treated differently than others during encryption. <ul><li>encryptEverything = All contents of the document are encrypted without distinction (if provided by the standard).</li><li>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).</li></ul></p>
-
-
Method Detail
-
getRecipient
public List<RecipientType> getRecipient()
Gets the value of the recipient property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the recipient property.For example, to add a new item, do as follows:
getRecipient().add(newItem);
Objects of the following type(s) are allowed in the list
RecipientType- Returns:
- The value of the recipient property.
-
isSetRecipient
public boolean isSetRecipient()
-
unsetRecipient
public void unsetRecipient()
-
getEncryptionKey
public PdfEncryptionKeyType getEncryptionKey()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p881634_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p918570_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Sets the encryption level for the document. <ul><li>RC4_40 = 40-bit RC4</li><li>RC4_128 = 128-bit RC4</li><li>AES_128 = 128-bit AES</li><li>AES_256 = 256-bit AES</li></ul></p><?xml version="1.0" encoding="UTF-8"?><p xmlns:p881634_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p918570_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b>Important:</b> 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 </p>- Returns:
- possible object is
PdfEncryptionKeyType
-
setEncryptionKey
public void setEncryptionKey(PdfEncryptionKeyType value)
Sets the value of the encryptionKey property.- Parameters:
value- allowed object isPdfEncryptionKeyType- See Also:
getEncryptionKey()
-
isSetEncryptionKey
public boolean isSetEncryptionKey()
-
getContentEncryption
public PdfContentEncryptionType getContentEncryption()
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p881634_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p918570_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Specifies whether certain contents should be treated differently than others during encryption. <ul><li>encryptEverything = All contents of the document are encrypted without distinction (if provided by the standard).</li><li>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).</li></ul></p>- Returns:
- possible object is
PdfContentEncryptionType
-
setContentEncryption
public void setContentEncryption(PdfContentEncryptionType value)
Sets the value of the contentEncryption property.- Parameters:
value- allowed object isPdfContentEncryptionType- See Also:
getContentEncryption()
-
isSetContentEncryption
public boolean isSetContentEncryption()
-
-