Class EncryptCertificateType


  • public class EncryptCertificateType
    extends Object
     <?xml version="1.0" encoding="UTF-8"?><p xmlns:p54688_="https://jakarta.ee/xml/ns/jaxb" xmlns:p573971_="urn:jaxb.jvnet.org:plugin:inheritance" 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 Detail

      • encryptionKey

        protected PdfEncryptionKeyType encryptionKey
         <?xml version="1.0" encoding="UTF-8"?><p xmlns:p54688_="https://jakarta.ee/xml/ns/jaxb" xmlns:p573971_="urn:jaxb.jvnet.org:plugin:inheritance" 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:p54688_="https://jakarta.ee/xml/ns/jaxb" xmlns:p573971_="urn:jaxb.jvnet.org:plugin:inheritance" 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:p54688_="https://jakarta.ee/xml/ns/jaxb" xmlns:p573971_="urn:jaxb.jvnet.org:plugin:inheritance" 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>
         
    • Constructor Detail

      • EncryptCertificateType

        public EncryptCertificateType()
    • 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 set method 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:p54688_="https://jakarta.ee/xml/ns/jaxb" xmlns:p573971_="urn:jaxb.jvnet.org:plugin:inheritance" 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:p54688_="https://jakarta.ee/xml/ns/jaxb" xmlns:p573971_="urn:jaxb.jvnet.org:plugin:inheritance" 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
      • isSetEncryptionKey

        public boolean isSetEncryptionKey()
      • getContentEncryption

        public PdfContentEncryptionType getContentEncryption()
         <?xml version="1.0" encoding="UTF-8"?><p xmlns:p54688_="https://jakarta.ee/xml/ns/jaxb" xmlns:p573971_="urn:jaxb.jvnet.org:plugin:inheritance" 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
      • isSetContentEncryption

        public boolean isSetContentEncryption()