Class XmlSignature

  • All Implemented Interfaces:
    Serializable

    public class XmlSignature
    extends XmlAbstractToken
    implements Serializable

    Java class for Signature complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Signature">
       <complexContent>
         <extension base="{http://dss.esig.europa.eu/validation/diagnostic}AbstractToken">
           <sequence>
             <element name="DAIdentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="SignatureFilename" type="{http://www.w3.org/2001/XMLSchema}string"/>
             <element name="ErrorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="DateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
             <element name="SignatureFormat" type="{http://dss.esig.europa.eu/validation/diagnostic}SignatureFormat"/>
             <element name="StructuralValidation" type="{http://dss.esig.europa.eu/validation/diagnostic}StructuralValidation" minOccurs="0"/>
             <element name="DigestMatchers" minOccurs="0">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <sequence>
                       <element name="DigestMatcher" type="{http://dss.esig.europa.eu/validation/diagnostic}DigestMatcher" maxOccurs="unbounded" minOccurs="0"/>
                     </sequence>
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="BasicSignature" type="{http://dss.esig.europa.eu/validation/diagnostic}BasicSignature"/>
             <element name="SigningCertificate" type="{http://dss.esig.europa.eu/validation/diagnostic}SigningCertificate" minOccurs="0"/>
             <element name="CertificateChain" type="{http://dss.esig.europa.eu/validation/diagnostic}CertificateChain" minOccurs="0"/>
             <element name="ContentType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="ContentIdentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="ContentHints" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="SignatureProductionPlace" type="{http://dss.esig.europa.eu/validation/diagnostic}SignatureProductionPlace" minOccurs="0"/>
             <element name="CommitmentTypeIndication" minOccurs="0">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <sequence>
                       <element name="Indication" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
                     </sequence>
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="SignerRole" type="{http://dss.esig.europa.eu/validation/diagnostic}SignerRole" maxOccurs="unbounded" minOccurs="0"/>
             <element name="Policy" type="{http://dss.esig.europa.eu/validation/diagnostic}Policy" minOccurs="0"/>
             <element name="PDFSignatureDictionary" type="{http://dss.esig.europa.eu/validation/diagnostic}PDFSignatureDictionary" minOccurs="0"/>
             <element name="SignerDocumentRepresentations" minOccurs="0">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <attribute name="HashOnly" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
                     <attribute name="DocHashOnly" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="FoundCertificates">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <sequence>
                       <element name="RelatedCertificate" type="{http://dss.esig.europa.eu/validation/diagnostic}RelatedCertificate" maxOccurs="unbounded" minOccurs="0"/>
                       <element name="OrphanCertificate" type="{http://dss.esig.europa.eu/validation/diagnostic}OrphanCertificate" maxOccurs="unbounded" minOccurs="0"/>
                     </sequence>
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="FoundRevocations">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <sequence>
                       <element name="RelatedRevocation" type="{http://dss.esig.europa.eu/validation/diagnostic}RelatedRevocation" maxOccurs="unbounded" minOccurs="0"/>
                       <element name="OrphanRevocation" type="{http://dss.esig.europa.eu/validation/diagnostic}OrphanRevocation" maxOccurs="unbounded" minOccurs="0"/>
                     </sequence>
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="FoundTimestamps">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <sequence>
                       <element name="FoundTimestamp" type="{http://dss.esig.europa.eu/validation/diagnostic}FoundTimestamp" maxOccurs="unbounded" minOccurs="0"/>
                     </sequence>
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="SignatureScopes">
               <complexType>
                 <complexContent>
                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                     <sequence>
                       <element name="SignatureScope" type="{http://dss.esig.europa.eu/validation/diagnostic}SignatureScope" maxOccurs="unbounded" minOccurs="0"/>
                     </sequence>
                   </restriction>
                 </complexContent>
               </complexType>
             </element>
             <element name="SignatureDigestReference" type="{http://dss.esig.europa.eu/validation/diagnostic}SignatureDigestReference"/>
             <element name="SignatureValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
           </sequence>
           <attribute name="CounterSignature" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="Parent" type="{http://www.w3.org/2001/XMLSchema}IDREF" />
         </extension>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlSignature

        public XmlSignature()
    • Method Detail

      • getDAIdentifier

        public String getDAIdentifier()
        Gets the value of the daIdentifier property.
        Returns:
        possible object is String
      • setDAIdentifier

        public void setDAIdentifier​(String value)
        Sets the value of the daIdentifier property.
        Parameters:
        value - allowed object is String
      • getSignatureFilename

        public String getSignatureFilename()
        Gets the value of the signatureFilename property.
        Returns:
        possible object is String
      • setSignatureFilename

        public void setSignatureFilename​(String value)
        Sets the value of the signatureFilename property.
        Parameters:
        value - allowed object is String
      • getErrorMessage

        public String getErrorMessage()
        Gets the value of the errorMessage property.
        Returns:
        possible object is String
      • setErrorMessage

        public void setErrorMessage​(String value)
        Sets the value of the errorMessage property.
        Parameters:
        value - allowed object is String
      • getDateTime

        public Date getDateTime()
        Gets the value of the dateTime property.
        Returns:
        possible object is String
      • setDateTime

        public void setDateTime​(Date value)
        Sets the value of the dateTime property.
        Parameters:
        value - allowed object is String
      • getSignatureFormat

        public SignatureLevel getSignatureFormat()
        Gets the value of the signatureFormat property.
        Returns:
        possible object is String
      • setSignatureFormat

        public void setSignatureFormat​(SignatureLevel value)
        Sets the value of the signatureFormat property.
        Parameters:
        value - allowed object is String
      • setBasicSignature

        public void setBasicSignature​(XmlBasicSignature value)
        Sets the value of the basicSignature property.
        Parameters:
        value - allowed object is XmlBasicSignature
      • getContentType

        public String getContentType()
        Gets the value of the contentType property.
        Returns:
        possible object is String
      • setContentType

        public void setContentType​(String value)
        Sets the value of the contentType property.
        Parameters:
        value - allowed object is String
      • getMimeType

        public String getMimeType()
        Gets the value of the mimeType property.
        Returns:
        possible object is String
      • setMimeType

        public void setMimeType​(String value)
        Sets the value of the mimeType property.
        Parameters:
        value - allowed object is String
      • getContentIdentifier

        public String getContentIdentifier()
        Gets the value of the contentIdentifier property.
        Returns:
        possible object is String
      • setContentIdentifier

        public void setContentIdentifier​(String value)
        Sets the value of the contentIdentifier property.
        Parameters:
        value - allowed object is String
      • getContentHints

        public String getContentHints()
        Gets the value of the contentHints property.
        Returns:
        possible object is String
      • setContentHints

        public void setContentHints​(String value)
        Sets the value of the contentHints property.
        Parameters:
        value - allowed object is String
      • getSignerRole

        public List<XmlSignerRole> getSignerRole()
        Gets the value of the signerRole 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 signerRole property.

        For example, to add a new item, do as follows:

            getSignerRole().add(newItem);
         

        Objects of the following type(s) are allowed in the list XmlSignerRole

      • getPolicy

        public XmlPolicy getPolicy()
        Gets the value of the policy property.
        Returns:
        possible object is XmlPolicy
      • setPolicy

        public void setPolicy​(XmlPolicy value)
        Sets the value of the policy property.
        Parameters:
        value - allowed object is XmlPolicy
      • setFoundRevocations

        public void setFoundRevocations​(XmlFoundRevocations value)
        Sets the value of the foundRevocations property.
        Parameters:
        value - allowed object is XmlFoundRevocations
      • getSignatureValue

        public byte[] getSignatureValue()
        Gets the value of the signatureValue property.
        Returns:
        possible object is byte[]
      • setSignatureValue

        public void setSignatureValue​(byte[] value)
        Sets the value of the signatureValue property.
        Parameters:
        value - allowed object is byte[]
      • isCounterSignature

        public Boolean isCounterSignature()
        Gets the value of the counterSignature property.
        Returns:
        possible object is Boolean
      • setCounterSignature

        public void setCounterSignature​(Boolean value)
        Sets the value of the counterSignature property.
        Parameters:
        value - allowed object is Boolean
      • getParent

        public XmlSignature getParent()
        Gets the value of the parent property.
        Returns:
        possible object is Object
      • setParent

        public void setParent​(XmlSignature value)
        Sets the value of the parent property.
        Parameters:
        value - allowed object is Object
      • setCertificateChain

        public void setCertificateChain​(List<XmlChainItem> certificateChain)
      • getCommitmentTypeIndication

        public List<String> getCommitmentTypeIndication()
      • setCommitmentTypeIndication

        public void setCommitmentTypeIndication​(List<String> commitmentTypeIndication)