Class XmlSignature
- java.lang.Object
-
- eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
-
- eu.europa.esig.dss.diagnostic.jaxb.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
-
-
Field Summary
-
Fields inherited from class eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
id
-
-
Constructor Summary
Constructors Constructor Description XmlSignature()
-
Method Summary
Modifier and Type Method Description XmlBasicSignaturegetBasicSignature()Gets the value of the basicSignature property.List<XmlChainItem>getCertificateChain()List<String>getCommitmentTypeIndication()StringgetContentHints()Gets the value of the contentHints property.StringgetContentIdentifier()Gets the value of the contentIdentifier property.StringgetContentType()Gets the value of the contentType property.StringgetDAIdentifier()Gets the value of the daIdentifier property.DategetDateTime()Gets the value of the dateTime property.List<XmlDigestMatcher>getDigestMatchers()StringgetErrorMessage()Gets the value of the errorMessage property.XmlFoundCertificatesgetFoundCertificates()Gets the value of the foundCertificates property.XmlFoundRevocationsgetFoundRevocations()Gets the value of the foundRevocations property.List<XmlFoundTimestamp>getFoundTimestamps()StringgetMimeType()Gets the value of the mimeType property.XmlSignaturegetParent()Gets the value of the parent property.XmlPDFSignatureDictionarygetPDFSignatureDictionary()Gets the value of the pdfSignatureDictionary property.XmlPolicygetPolicy()Gets the value of the policy property.XmlSignatureDigestReferencegetSignatureDigestReference()Gets the value of the signatureDigestReference property.StringgetSignatureFilename()Gets the value of the signatureFilename property.SignatureLevelgetSignatureFormat()Gets the value of the signatureFormat property.XmlSignatureProductionPlacegetSignatureProductionPlace()Gets the value of the signatureProductionPlace property.List<XmlSignatureScope>getSignatureScopes()byte[]getSignatureValue()Gets the value of the signatureValue property.XmlSignerDocumentRepresentationsgetSignerDocumentRepresentations()Gets the value of the signerDocumentRepresentations property.List<XmlSignerRole>getSignerRole()Gets the value of the signerRole property.XmlSigningCertificategetSigningCertificate()Gets the value of the signingCertificate property.XmlStructuralValidationgetStructuralValidation()Gets the value of the structuralValidation property.BooleanisCounterSignature()Gets the value of the counterSignature property.voidsetBasicSignature(XmlBasicSignature value)Sets the value of the basicSignature property.voidsetCertificateChain(List<XmlChainItem> certificateChain)voidsetCommitmentTypeIndication(List<String> commitmentTypeIndication)voidsetContentHints(String value)Sets the value of the contentHints property.voidsetContentIdentifier(String value)Sets the value of the contentIdentifier property.voidsetContentType(String value)Sets the value of the contentType property.voidsetCounterSignature(Boolean value)Sets the value of the counterSignature property.voidsetDAIdentifier(String value)Sets the value of the daIdentifier property.voidsetDateTime(Date value)Sets the value of the dateTime property.voidsetDigestMatchers(List<XmlDigestMatcher> digestMatchers)voidsetErrorMessage(String value)Sets the value of the errorMessage property.voidsetFoundCertificates(XmlFoundCertificates value)Sets the value of the foundCertificates property.voidsetFoundRevocations(XmlFoundRevocations value)Sets the value of the foundRevocations property.voidsetFoundTimestamps(List<XmlFoundTimestamp> foundTimestamps)voidsetMimeType(String value)Sets the value of the mimeType property.voidsetParent(XmlSignature value)Sets the value of the parent property.voidsetPDFSignatureDictionary(XmlPDFSignatureDictionary value)Sets the value of the pdfSignatureDictionary property.voidsetPolicy(XmlPolicy value)Sets the value of the policy property.voidsetSignatureDigestReference(XmlSignatureDigestReference value)Sets the value of the signatureDigestReference property.voidsetSignatureFilename(String value)Sets the value of the signatureFilename property.voidsetSignatureFormat(SignatureLevel value)Sets the value of the signatureFormat property.voidsetSignatureProductionPlace(XmlSignatureProductionPlace value)Sets the value of the signatureProductionPlace property.voidsetSignatureScopes(List<XmlSignatureScope> signatureScopes)voidsetSignatureValue(byte[] value)Sets the value of the signatureValue property.voidsetSignerDocumentRepresentations(XmlSignerDocumentRepresentations value)Sets the value of the signerDocumentRepresentations property.voidsetSigningCertificate(XmlSigningCertificate value)Sets the value of the signingCertificate property.voidsetStructuralValidation(XmlStructuralValidation value)Sets the value of the structuralValidation property.-
Methods inherited from class eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
getId, setId
-
-
-
-
Field Detail
-
daIdentifier
protected String daIdentifier
-
signatureFilename
protected String signatureFilename
-
errorMessage
protected String errorMessage
-
dateTime
protected Date dateTime
-
signatureFormat
protected SignatureLevel signatureFormat
-
structuralValidation
protected XmlStructuralValidation structuralValidation
-
digestMatchers
protected List<XmlDigestMatcher> digestMatchers
-
basicSignature
protected XmlBasicSignature basicSignature
-
signingCertificate
protected XmlSigningCertificate signingCertificate
-
certificateChain
protected List<XmlChainItem> certificateChain
-
contentType
protected String contentType
-
mimeType
protected String mimeType
-
contentIdentifier
protected String contentIdentifier
-
contentHints
protected String contentHints
-
signatureProductionPlace
protected XmlSignatureProductionPlace signatureProductionPlace
-
signerRole
protected List<XmlSignerRole> signerRole
-
policy
protected XmlPolicy policy
-
pdfSignatureDictionary
protected XmlPDFSignatureDictionary pdfSignatureDictionary
-
signerDocumentRepresentations
protected XmlSignerDocumentRepresentations signerDocumentRepresentations
-
foundCertificates
protected XmlFoundCertificates foundCertificates
-
foundRevocations
protected XmlFoundRevocations foundRevocations
-
foundTimestamps
protected List<XmlFoundTimestamp> foundTimestamps
-
signatureScopes
protected List<XmlSignatureScope> signatureScopes
-
signatureDigestReference
protected XmlSignatureDigestReference signatureDigestReference
-
signatureValue
protected byte[] signatureValue
-
counterSignature
protected Boolean counterSignature
-
parent
protected XmlSignature parent
-
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
getStructuralValidation
public XmlStructuralValidation getStructuralValidation()
Gets the value of the structuralValidation property.- Returns:
- possible object is
XmlStructuralValidation
-
setStructuralValidation
public void setStructuralValidation(XmlStructuralValidation value)
Sets the value of the structuralValidation property.- Parameters:
value- allowed object isXmlStructuralValidation
-
getBasicSignature
public XmlBasicSignature getBasicSignature()
Gets the value of the basicSignature property.- Returns:
- possible object is
XmlBasicSignature
-
setBasicSignature
public void setBasicSignature(XmlBasicSignature value)
Sets the value of the basicSignature property.- Parameters:
value- allowed object isXmlBasicSignature
-
getSigningCertificate
public XmlSigningCertificate getSigningCertificate()
Gets the value of the signingCertificate property.- Returns:
- possible object is
XmlSigningCertificate
-
setSigningCertificate
public void setSigningCertificate(XmlSigningCertificate value)
Sets the value of the signingCertificate property.- Parameters:
value- allowed object isXmlSigningCertificate
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
getSignatureProductionPlace
public XmlSignatureProductionPlace getSignatureProductionPlace()
Gets the value of the signatureProductionPlace property.- Returns:
- possible object is
XmlSignatureProductionPlace
-
setSignatureProductionPlace
public void setSignatureProductionPlace(XmlSignatureProductionPlace value)
Sets the value of the signatureProductionPlace property.- Parameters:
value- allowed object isXmlSignatureProductionPlace
-
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
setmethod 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 isXmlPolicy
-
getPDFSignatureDictionary
public XmlPDFSignatureDictionary getPDFSignatureDictionary()
Gets the value of the pdfSignatureDictionary property.- Returns:
- possible object is
XmlPDFSignatureDictionary
-
setPDFSignatureDictionary
public void setPDFSignatureDictionary(XmlPDFSignatureDictionary value)
Sets the value of the pdfSignatureDictionary property.- Parameters:
value- allowed object isXmlPDFSignatureDictionary
-
getSignerDocumentRepresentations
public XmlSignerDocumentRepresentations getSignerDocumentRepresentations()
Gets the value of the signerDocumentRepresentations property.- Returns:
- possible object is
XmlSignerDocumentRepresentations
-
setSignerDocumentRepresentations
public void setSignerDocumentRepresentations(XmlSignerDocumentRepresentations value)
Sets the value of the signerDocumentRepresentations property.- Parameters:
value- allowed object isXmlSignerDocumentRepresentations
-
getFoundCertificates
public XmlFoundCertificates getFoundCertificates()
Gets the value of the foundCertificates property.- Returns:
- possible object is
XmlFoundCertificates
-
setFoundCertificates
public void setFoundCertificates(XmlFoundCertificates value)
Sets the value of the foundCertificates property.- Parameters:
value- allowed object isXmlFoundCertificates
-
getFoundRevocations
public XmlFoundRevocations getFoundRevocations()
Gets the value of the foundRevocations property.- Returns:
- possible object is
XmlFoundRevocations
-
setFoundRevocations
public void setFoundRevocations(XmlFoundRevocations value)
Sets the value of the foundRevocations property.- Parameters:
value- allowed object isXmlFoundRevocations
-
getSignatureDigestReference
public XmlSignatureDigestReference getSignatureDigestReference()
Gets the value of the signatureDigestReference property.- Returns:
- possible object is
XmlSignatureDigestReference
-
setSignatureDigestReference
public void setSignatureDigestReference(XmlSignatureDigestReference value)
Sets the value of the signatureDigestReference property.- Parameters:
value- allowed object isXmlSignatureDigestReference
-
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 isBoolean
-
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 isObject
-
getDigestMatchers
public List<XmlDigestMatcher> getDigestMatchers()
-
setDigestMatchers
public void setDigestMatchers(List<XmlDigestMatcher> digestMatchers)
-
getCertificateChain
public List<XmlChainItem> getCertificateChain()
-
setCertificateChain
public void setCertificateChain(List<XmlChainItem> certificateChain)
-
setCommitmentTypeIndication
public void setCommitmentTypeIndication(List<String> commitmentTypeIndication)
-
getFoundTimestamps
public List<XmlFoundTimestamp> getFoundTimestamps()
-
setFoundTimestamps
public void setFoundTimestamps(List<XmlFoundTimestamp> foundTimestamps)
-
getSignatureScopes
public List<XmlSignatureScope> getSignatureScopes()
-
setSignatureScopes
public void setSignatureScopes(List<XmlSignatureScope> signatureScopes)
-
-