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="ClaimedSigningTime" 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="CommitmentTypeIndications" type="{http://dss.esig.europa.eu/validation/diagnostic}CommitmentTypeIndications" minOccurs="0"/>
<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="SignerInformationStore" type="{http://dss.esig.europa.eu/validation/diagnostic}SignerInformationStore" minOccurs="0"/>
<element name="PDFRevision" type="{http://dss.esig.europa.eu/validation/diagnostic}PDFRevision" 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" type="{http://dss.esig.europa.eu/validation/diagnostic}FoundCertificates"/>
<element name="FoundRevocations" type="{http://dss.esig.europa.eu/validation/diagnostic}FoundRevocations"/>
<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" />
<attribute name="Duplicated" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</extension>
</complexContent>
</complexType>
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description XmlSignature() -
Method Summary
Modifier and Type Method Description XmlBasicSignaturegetBasicSignature()Gets the value of the basicSignature property.List<XmlChainItem>getCertificateChain()DategetClaimedSigningTime()Gets the value of the claimedSigningTime property.List<XmlCommitmentTypeIndication>getCommitmentTypeIndications()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.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.XmlPDFRevisiongetPDFRevision()Gets the value of the pdfRevision 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<XmlSignerInfo>getSignerInformationStore()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.BooleanisDuplicated()Gets the value of the duplicated property.voidsetBasicSignature(XmlBasicSignature value)Sets the value of the basicSignature property.voidsetCertificateChain(List<XmlChainItem> certificateChain)voidsetClaimedSigningTime(Date value)Sets the value of the claimedSigningTime property.voidsetCommitmentTypeIndications(List<XmlCommitmentTypeIndication> commitmentTypeIndications)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.voidsetDigestMatchers(List<XmlDigestMatcher> digestMatchers)voidsetDuplicated(Boolean value)Sets the value of the duplicated property.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.voidsetPDFRevision(XmlPDFRevision value)Sets the value of the pdfRevision 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.voidsetSignerInformationStore(List<XmlSignerInfo> signerInformationStore)voidsetSigningCertificate(XmlSigningCertificate value)Sets the value of the signingCertificate property.voidsetStructuralValidation(XmlStructuralValidation value)Sets the value of the structuralValidation property.
-
Field Details
-
daIdentifier
-
signatureFilename
-
errorMessage
-
claimedSigningTime
-
signatureFormat
-
structuralValidation
-
digestMatchers
-
basicSignature
-
signingCertificate
-
certificateChain
-
contentType
-
mimeType
-
contentIdentifier
-
contentHints
-
signatureProductionPlace
-
commitmentTypeIndications
-
signerRole
-
policy
-
signerInformationStore
-
pdfRevision
-
signerDocumentRepresentations
-
foundCertificates
-
foundRevocations
-
foundTimestamps
-
signatureScopes
-
signatureDigestReference
-
signatureValue
protected byte[] signatureValue -
counterSignature
-
parent
-
duplicated
-
-
Constructor Details
-
XmlSignature
public XmlSignature()
-
-
Method Details
-
getDAIdentifier
Gets the value of the daIdentifier property.- Returns:
- possible object is
String
-
setDAIdentifier
Sets the value of the daIdentifier property.- Parameters:
value- allowed object isString
-
getSignatureFilename
Gets the value of the signatureFilename property.- Returns:
- possible object is
String
-
setSignatureFilename
Sets the value of the signatureFilename property.- Parameters:
value- allowed object isString
-
getErrorMessage
Gets the value of the errorMessage property.- Returns:
- possible object is
String
-
setErrorMessage
Sets the value of the errorMessage property.- Parameters:
value- allowed object isString
-
getClaimedSigningTime
Gets the value of the claimedSigningTime property.- Returns:
- possible object is
String
-
setClaimedSigningTime
Sets the value of the claimedSigningTime property.- Parameters:
value- allowed object isString
-
getSignatureFormat
Gets the value of the signatureFormat property.- Returns:
- possible object is
String
-
setSignatureFormat
Sets the value of the signatureFormat property.- Parameters:
value- allowed object isString
-
getStructuralValidation
Gets the value of the structuralValidation property.- Returns:
- possible object is
XmlStructuralValidation
-
setStructuralValidation
Sets the value of the structuralValidation property.- Parameters:
value- allowed object isXmlStructuralValidation
-
getBasicSignature
Gets the value of the basicSignature property.- Returns:
- possible object is
XmlBasicSignature
-
setBasicSignature
Sets the value of the basicSignature property.- Parameters:
value- allowed object isXmlBasicSignature
-
getSigningCertificate
Gets the value of the signingCertificate property.- Returns:
- possible object is
XmlSigningCertificate
-
setSigningCertificate
Sets the value of the signingCertificate property.- Parameters:
value- allowed object isXmlSigningCertificate
-
getContentType
Gets the value of the contentType property.- Returns:
- possible object is
String
-
setContentType
Sets the value of the contentType property.- Parameters:
value- allowed object isString
-
getMimeType
Gets the value of the mimeType property.- Returns:
- possible object is
String
-
setMimeType
Sets the value of the mimeType property.- Parameters:
value- allowed object isString
-
getContentIdentifier
Gets the value of the contentIdentifier property.- Returns:
- possible object is
String
-
setContentIdentifier
Sets the value of the contentIdentifier property.- Parameters:
value- allowed object isString
-
getContentHints
Gets the value of the contentHints property.- Returns:
- possible object is
String
-
setContentHints
Sets the value of the contentHints property.- Parameters:
value- allowed object isString
-
getSignatureProductionPlace
Gets the value of the signatureProductionPlace property.- Returns:
- possible object is
XmlSignatureProductionPlace
-
setSignatureProductionPlace
Sets the value of the signatureProductionPlace property.- Parameters:
value- allowed object isXmlSignatureProductionPlace
-
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
Gets the value of the policy property.- Returns:
- possible object is
XmlPolicy
-
setPolicy
Sets the value of the policy property.- Parameters:
value- allowed object isXmlPolicy
-
getPDFRevision
Gets the value of the pdfRevision property.- Returns:
- possible object is
XmlPDFRevision
-
setPDFRevision
Sets the value of the pdfRevision property.- Parameters:
value- allowed object isXmlPDFRevision
-
getSignerDocumentRepresentations
Gets the value of the signerDocumentRepresentations property.- Returns:
- possible object is
XmlSignerDocumentRepresentations
-
setSignerDocumentRepresentations
Sets the value of the signerDocumentRepresentations property.- Parameters:
value- allowed object isXmlSignerDocumentRepresentations
-
getFoundCertificates
Gets the value of the foundCertificates property.- Returns:
- possible object is
XmlFoundCertificates
-
setFoundCertificates
Sets the value of the foundCertificates property.- Parameters:
value- allowed object isXmlFoundCertificates
-
getFoundRevocations
Gets the value of the foundRevocations property.- Returns:
- possible object is
XmlFoundRevocations
-
setFoundRevocations
Sets the value of the foundRevocations property.- Parameters:
value- allowed object isXmlFoundRevocations
-
getSignatureDigestReference
Gets the value of the signatureDigestReference property.- Returns:
- possible object is
XmlSignatureDigestReference
-
setSignatureDigestReference
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
Gets the value of the counterSignature property.- Returns:
- possible object is
Boolean
-
setCounterSignature
Sets the value of the counterSignature property.- Parameters:
value- allowed object isBoolean
-
getParent
Gets the value of the parent property.- Returns:
- possible object is
Object
-
setParent
Sets the value of the parent property.- Parameters:
value- allowed object isObject
-
isDuplicated
Gets the value of the duplicated property.- Returns:
- possible object is
Boolean
-
setDuplicated
Sets the value of the duplicated property.- Parameters:
value- allowed object isBoolean
-
getDigestMatchers
-
setDigestMatchers
-
getCertificateChain
-
setCertificateChain
-
getCommitmentTypeIndications
-
setCommitmentTypeIndications
public void setCommitmentTypeIndications(List<XmlCommitmentTypeIndication> commitmentTypeIndications) -
getSignerInformationStore
-
setSignerInformationStore
-
getFoundTimestamps
-
setFoundTimestamps
-
getSignatureScopes
-
setSignatureScopes
-