eu.europa.esig.dss.diagnostic.jaxb.XmlTimestamp Maven / Gradle / Ivy
Show all versions of dss-diagnostic-jaxb Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.10.20 at 09:59:47 AM EEST
//
package eu.europa.esig.dss.diagnostic.jaxb;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import eu.europa.esig.dss.enumerations.ArchiveTimestampType;
import eu.europa.esig.dss.enumerations.TimestampType;
/**
* Java class for Timestamp complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Timestamp">
* <complexContent>
* <extension base="{http://dss.esig.europa.eu/validation/diagnostic}AbstractToken">
* <sequence>
* <element name="TimestampFilename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="ArchiveTimestampType" type="{http://dss.esig.europa.eu/validation/diagnostic}ArchiveTimestampType" minOccurs="0"/>
* <element name="ProductionTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="DigestMatcher" type="{http://dss.esig.europa.eu/validation/diagnostic}DigestMatcher" maxOccurs="unbounded"/>
* <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="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="FoundCertificates" type="{http://dss.esig.europa.eu/validation/diagnostic}FoundCertificates"/>
* <element name="FoundRevocations" type="{http://dss.esig.europa.eu/validation/diagnostic}FoundRevocations"/>
* <element name="TimestampedObjects" type="{http://dss.esig.europa.eu/validation/diagnostic}TimestampedObjects"/>
* <choice>
* <element name="Base64Encoded" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
* <element name="DigestAlgoAndValue" type="{http://dss.esig.europa.eu/validation/diagnostic}DigestAlgoAndValue"/>
* </choice>
* </sequence>
* <attribute name="Type" use="required" type="{http://dss.esig.europa.eu/validation/diagnostic}TimestampType" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Timestamp", propOrder = {
"timestampFilename",
"archiveTimestampType",
"productionTime",
"digestMatchers",
"basicSignature",
"signingCertificate",
"certificateChain",
"signerInformationStore",
"pdfRevision",
"foundCertificates",
"foundRevocations",
"timestampedObjects",
"base64Encoded",
"digestAlgoAndValue"
})
public class XmlTimestamp
extends XmlAbstractToken
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "TimestampFilename")
protected String timestampFilename;
@XmlElement(name = "ArchiveTimestampType", type = String.class)
@XmlJavaTypeAdapter(Adapter12 .class)
protected ArchiveTimestampType archiveTimestampType;
@XmlElement(name = "ProductionTime", required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Date productionTime;
@XmlElement(name = "DigestMatcher", required = true)
protected List digestMatchers;
@XmlElement(name = "BasicSignature", required = true)
protected XmlBasicSignature basicSignature;
@XmlElement(name = "SigningCertificate")
protected XmlSigningCertificate signingCertificate;
@XmlElementWrapper(name = "CertificateChain")
@XmlElement(name = "ChainItem", namespace = "http://dss.esig.europa.eu/validation/diagnostic")
protected List certificateChain;
@XmlElementWrapper(name = "SignerInformationStore")
@XmlElement(name = "SignerInfo", namespace = "http://dss.esig.europa.eu/validation/diagnostic")
protected List signerInformationStore;
@XmlElement(name = "PDFRevision")
protected XmlPDFRevision pdfRevision;
@XmlElement(name = "FoundCertificates", required = true)
protected XmlFoundCertificates foundCertificates;
@XmlElement(name = "FoundRevocations", required = true)
protected XmlFoundRevocations foundRevocations;
@XmlElementWrapper(name = "TimestampedObjects", required = true)
@XmlElement(name = "TimestampedObject", namespace = "http://dss.esig.europa.eu/validation/diagnostic")
protected List timestampedObjects;
@XmlElement(name = "Base64Encoded")
protected byte[] base64Encoded;
@XmlElement(name = "DigestAlgoAndValue")
protected XmlDigestAlgoAndValue digestAlgoAndValue;
@XmlAttribute(name = "Type", required = true)
@XmlJavaTypeAdapter(Adapter11 .class)
protected TimestampType type;
/**
* Gets the value of the timestampFilename property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTimestampFilename() {
return timestampFilename;
}
/**
* Sets the value of the timestampFilename property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTimestampFilename(String value) {
this.timestampFilename = value;
}
/**
* Gets the value of the archiveTimestampType property.
*
* @return
* possible object is
* {@link String }
*
*/
public ArchiveTimestampType getArchiveTimestampType() {
return archiveTimestampType;
}
/**
* Sets the value of the archiveTimestampType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArchiveTimestampType(ArchiveTimestampType value) {
this.archiveTimestampType = value;
}
/**
* Gets the value of the productionTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getProductionTime() {
return productionTime;
}
/**
* Sets the value of the productionTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProductionTime(Date value) {
this.productionTime = value;
}
/**
* Gets the value of the digestMatchers 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 digestMatchers property.
*
*
* For example, to add a new item, do as follows:
*
* getDigestMatchers().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XmlDigestMatcher }
*
*
*/
public List getDigestMatchers() {
if (digestMatchers == null) {
digestMatchers = new ArrayList();
}
return this.digestMatchers;
}
/**
* Gets the value of the basicSignature property.
*
* @return
* possible object is
* {@link XmlBasicSignature }
*
*/
public XmlBasicSignature getBasicSignature() {
return basicSignature;
}
/**
* Sets the value of the basicSignature property.
*
* @param value
* allowed object is
* {@link XmlBasicSignature }
*
*/
public void setBasicSignature(XmlBasicSignature value) {
this.basicSignature = value;
}
/**
* Gets the value of the signingCertificate property.
*
* @return
* possible object is
* {@link XmlSigningCertificate }
*
*/
public XmlSigningCertificate getSigningCertificate() {
return signingCertificate;
}
/**
* Sets the value of the signingCertificate property.
*
* @param value
* allowed object is
* {@link XmlSigningCertificate }
*
*/
public void setSigningCertificate(XmlSigningCertificate value) {
this.signingCertificate = value;
}
/**
* Gets the value of the pdfRevision property.
*
* @return
* possible object is
* {@link XmlPDFRevision }
*
*/
public XmlPDFRevision getPDFRevision() {
return pdfRevision;
}
/**
* Sets the value of the pdfRevision property.
*
* @param value
* allowed object is
* {@link XmlPDFRevision }
*
*/
public void setPDFRevision(XmlPDFRevision value) {
this.pdfRevision = value;
}
/**
* Gets the value of the foundCertificates property.
*
* @return
* possible object is
* {@link XmlFoundCertificates }
*
*/
public XmlFoundCertificates getFoundCertificates() {
return foundCertificates;
}
/**
* Sets the value of the foundCertificates property.
*
* @param value
* allowed object is
* {@link XmlFoundCertificates }
*
*/
public void setFoundCertificates(XmlFoundCertificates value) {
this.foundCertificates = value;
}
/**
* Gets the value of the foundRevocations property.
*
* @return
* possible object is
* {@link XmlFoundRevocations }
*
*/
public XmlFoundRevocations getFoundRevocations() {
return foundRevocations;
}
/**
* Sets the value of the foundRevocations property.
*
* @param value
* allowed object is
* {@link XmlFoundRevocations }
*
*/
public void setFoundRevocations(XmlFoundRevocations value) {
this.foundRevocations = value;
}
/**
* Gets the value of the base64Encoded property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getBase64Encoded() {
return base64Encoded;
}
/**
* Sets the value of the base64Encoded property.
*
* @param value
* allowed object is
* byte[]
*/
public void setBase64Encoded(byte[] value) {
this.base64Encoded = value;
}
/**
* Gets the value of the digestAlgoAndValue property.
*
* @return
* possible object is
* {@link XmlDigestAlgoAndValue }
*
*/
public XmlDigestAlgoAndValue getDigestAlgoAndValue() {
return digestAlgoAndValue;
}
/**
* Sets the value of the digestAlgoAndValue property.
*
* @param value
* allowed object is
* {@link XmlDigestAlgoAndValue }
*
*/
public void setDigestAlgoAndValue(XmlDigestAlgoAndValue value) {
this.digestAlgoAndValue = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public TimestampType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(TimestampType value) {
this.type = value;
}
public List getCertificateChain() {
if (certificateChain == null) {
certificateChain = new ArrayList();
}
return certificateChain;
}
public void setCertificateChain(List certificateChain) {
this.certificateChain = certificateChain;
}
public List getSignerInformationStore() {
if (signerInformationStore == null) {
signerInformationStore = new ArrayList();
}
return signerInformationStore;
}
public void setSignerInformationStore(List signerInformationStore) {
this.signerInformationStore = signerInformationStore;
}
public List getTimestampedObjects() {
if (timestampedObjects == null) {
timestampedObjects = new ArrayList();
}
return timestampedObjects;
}
public void setTimestampedObjects(List timestampedObjects) {
this.timestampedObjects = timestampedObjects;
}
}