All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.europa.esig.dss.diagnostic.jaxb.XmlCertificate Maven / Gradle / Ivy

//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.09.11 at 03:26:28 PM CEST 
//


package eu.europa.esig.dss.diagnostic.jaxb;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import eu.europa.esig.dss.enumerations.CertificateSourceType;
import eu.europa.esig.dss.enumerations.EncryptionAlgorithm;
import eu.europa.esig.dss.jaxb.parsers.DateParser;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElementWrapper;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for Certificate complex type. * *

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

 * <complexType name="Certificate">
 *   <complexContent>
 *     <extension base="{http://dss.esig.europa.eu/validation/diagnostic}AbstractToken">
 *       <sequence>
 *         <element name="SubjectDistinguishedName" type="{http://dss.esig.europa.eu/validation/diagnostic}DistinguishedName" maxOccurs="unbounded"/>
 *         <element name="IssuerDistinguishedName" type="{http://dss.esig.europa.eu/validation/diagnostic}DistinguishedName" maxOccurs="unbounded"/>
 *         <element name="SerialNumber" type="{http://www.w3.org/2001/XMLSchema}integer"/>
 *         <element name="SubjectSerialNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="CommonName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Locality" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="State" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="CountryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="OrganizationIdentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="OrganizationName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="OrganizationalUnit" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="GivenName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Surname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Pseudonym" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Sources">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="Source" type="{http://dss.esig.europa.eu/validation/diagnostic}CertificateSourceType" maxOccurs="unbounded"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="NotAfter" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="NotBefore" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="PublicKeySize" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="PublicKeyEncryptionAlgo" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="EntityKey" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <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="Trusted" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="SelfSigned" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *         <element name="CertificateExtensions" type="{http://dss.esig.europa.eu/validation/diagnostic}CertificateExtensions" minOccurs="0"/>
 *         <element name="TrustServiceProviders" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="TrustServiceProvider" type="{http://dss.esig.europa.eu/validation/diagnostic}TrustServiceProvider" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="Revocations" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="CertificateRevocation" type="{http://dss.esig.europa.eu/validation/diagnostic}CertificateRevocation" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <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>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Certificate", propOrder = { "subjectDistinguishedName", "issuerDistinguishedName", "serialNumber", "subjectSerialNumber", "commonName", "locality", "state", "countryName", "organizationIdentifier", "organizationName", "organizationalUnit", "title", "givenName", "surname", "pseudonym", "email", "sources", "notAfter", "notBefore", "publicKeySize", "publicKeyEncryptionAlgo", "entityKey", "basicSignature", "signingCertificate", "certificateChain", "trusted", "selfSigned", "certificateExtensions", "trustServiceProviders", "revocations", "base64Encoded", "digestAlgoAndValue" }) public class XmlCertificate extends XmlAbstractToken implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(name = "SubjectDistinguishedName", required = true) protected List subjectDistinguishedName; @XmlElement(name = "IssuerDistinguishedName", required = true) protected List issuerDistinguishedName; @XmlElement(name = "SerialNumber", required = true) protected BigInteger serialNumber; @XmlElement(name = "SubjectSerialNumber") protected String subjectSerialNumber; @XmlElement(name = "CommonName") protected String commonName; @XmlElement(name = "Locality") protected String locality; @XmlElement(name = "State") protected String state; @XmlElement(name = "CountryName") protected String countryName; @XmlElement(name = "OrganizationIdentifier") protected String organizationIdentifier; @XmlElement(name = "OrganizationName") protected String organizationName; @XmlElement(name = "OrganizationalUnit") protected String organizationalUnit; @XmlElement(name = "Title") protected String title; @XmlElement(name = "GivenName") protected String givenName; @XmlElement(name = "Surname") protected String surname; @XmlElement(name = "Pseudonym") protected String pseudonym; @XmlElement(name = "Email") protected String email; @XmlElementWrapper(name = "Sources", required = true) @XmlElement(name = "Source", namespace = "http://dss.esig.europa.eu/validation/diagnostic", type = String.class) @XmlJavaTypeAdapter(Adapter11 .class) protected List sources; @XmlElement(name = "NotAfter", required = true, type = String.class) @XmlJavaTypeAdapter(DateParser.class) @XmlSchemaType(name = "dateTime") protected Date notAfter; @XmlElement(name = "NotBefore", required = true, type = String.class) @XmlJavaTypeAdapter(DateParser.class) @XmlSchemaType(name = "dateTime") protected Date notBefore; @XmlElement(name = "PublicKeySize") protected int publicKeySize; @XmlElement(name = "PublicKeyEncryptionAlgo", required = true, type = String.class) @XmlJavaTypeAdapter(Adapter28 .class) protected EncryptionAlgorithm publicKeyEncryptionAlgo; @XmlElement(name = "EntityKey", required = true) protected String entityKey; @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; @XmlElement(name = "Trusted") protected boolean trusted; @XmlElement(name = "SelfSigned") protected boolean selfSigned; @XmlElementWrapper(name = "CertificateExtensions") @XmlElements({ @XmlElement(name = "KeyUsages", type = XmlKeyUsages.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "ExtendedKeyUsages", type = XmlExtendedKeyUsages.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "CertificatePolicies", type = XmlCertificatePolicies.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "SubjectAlternativeNames", type = XmlSubjectAlternativeNames.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "BasicConstraints", type = XmlBasicConstraints.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "PolicyConstraints", type = XmlPolicyConstraints.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "InhibitAnyPolicy", type = XmlInhibitAnyPolicy.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "NameConstraints", type = XmlNameConstraints.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "CRLDistributionPoints", type = XmlCRLDistributionPoints.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "AuthorityKeyIdentifier", type = XmlAuthorityKeyIdentifier.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "SubjectKeyIdentifier", type = XmlSubjectKeyIdentifier.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "AuthorityInformationAccess", type = XmlAuthorityInformationAccess.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "IdPkixOcspNoCheck", type = XmlIdPkixOcspNoCheck.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "ValAssuredShortTermCertificate", type = XmlValAssuredShortTermCertificate.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "QcStatements", type = XmlQcStatements.class, namespace = "http://dss.esig.europa.eu/validation/diagnostic"), @XmlElement(name = "OtherExtension", namespace = "http://dss.esig.europa.eu/validation/diagnostic") }) protected List certificateExtensions; @XmlElementWrapper(name = "TrustServiceProviders") @XmlElement(name = "TrustServiceProvider", namespace = "http://dss.esig.europa.eu/validation/diagnostic") protected List trustServiceProviders; @XmlElementWrapper(name = "Revocations") @XmlElement(name = "CertificateRevocation", namespace = "http://dss.esig.europa.eu/validation/diagnostic") protected List revocations; @XmlElement(name = "Base64Encoded") protected byte[] base64Encoded; @XmlElement(name = "DigestAlgoAndValue") protected XmlDigestAlgoAndValue digestAlgoAndValue; /** * Gets the value of the subjectDistinguishedName 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 Jakarta XML Binding object. * This is why there is not a set method for the subjectDistinguishedName property. * *

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

     *    getSubjectDistinguishedName().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link XmlDistinguishedName } * * */ public List getSubjectDistinguishedName() { if (subjectDistinguishedName == null) { subjectDistinguishedName = new ArrayList(); } return this.subjectDistinguishedName; } /** * Gets the value of the issuerDistinguishedName 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 Jakarta XML Binding object. * This is why there is not a set method for the issuerDistinguishedName property. * *

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

     *    getIssuerDistinguishedName().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link XmlDistinguishedName } * * */ public List getIssuerDistinguishedName() { if (issuerDistinguishedName == null) { issuerDistinguishedName = new ArrayList(); } return this.issuerDistinguishedName; } /** * Gets the value of the serialNumber property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getSerialNumber() { return serialNumber; } /** * Sets the value of the serialNumber property. * * @param value * allowed object is * {@link BigInteger } * */ public void setSerialNumber(BigInteger value) { this.serialNumber = value; } /** * Gets the value of the subjectSerialNumber property. * * @return * possible object is * {@link String } * */ public String getSubjectSerialNumber() { return subjectSerialNumber; } /** * Sets the value of the subjectSerialNumber property. * * @param value * allowed object is * {@link String } * */ public void setSubjectSerialNumber(String value) { this.subjectSerialNumber = value; } /** * Gets the value of the commonName property. * * @return * possible object is * {@link String } * */ public String getCommonName() { return commonName; } /** * Sets the value of the commonName property. * * @param value * allowed object is * {@link String } * */ public void setCommonName(String value) { this.commonName = value; } /** * Gets the value of the locality property. * * @return * possible object is * {@link String } * */ public String getLocality() { return locality; } /** * Sets the value of the locality property. * * @param value * allowed object is * {@link String } * */ public void setLocality(String value) { this.locality = value; } /** * Gets the value of the state property. * * @return * possible object is * {@link String } * */ public String getState() { return state; } /** * Sets the value of the state property. * * @param value * allowed object is * {@link String } * */ public void setState(String value) { this.state = value; } /** * Gets the value of the countryName property. * * @return * possible object is * {@link String } * */ public String getCountryName() { return countryName; } /** * Sets the value of the countryName property. * * @param value * allowed object is * {@link String } * */ public void setCountryName(String value) { this.countryName = value; } /** * Gets the value of the organizationIdentifier property. * * @return * possible object is * {@link String } * */ public String getOrganizationIdentifier() { return organizationIdentifier; } /** * Sets the value of the organizationIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setOrganizationIdentifier(String value) { this.organizationIdentifier = value; } /** * Gets the value of the organizationName property. * * @return * possible object is * {@link String } * */ public String getOrganizationName() { return organizationName; } /** * Sets the value of the organizationName property. * * @param value * allowed object is * {@link String } * */ public void setOrganizationName(String value) { this.organizationName = value; } /** * Gets the value of the organizationalUnit property. * * @return * possible object is * {@link String } * */ public String getOrganizationalUnit() { return organizationalUnit; } /** * Sets the value of the organizationalUnit property. * * @param value * allowed object is * {@link String } * */ public void setOrganizationalUnit(String value) { this.organizationalUnit = value; } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } /** * Gets the value of the givenName property. * * @return * possible object is * {@link String } * */ public String getGivenName() { return givenName; } /** * Sets the value of the givenName property. * * @param value * allowed object is * {@link String } * */ public void setGivenName(String value) { this.givenName = value; } /** * Gets the value of the surname property. * * @return * possible object is * {@link String } * */ public String getSurname() { return surname; } /** * Sets the value of the surname property. * * @param value * allowed object is * {@link String } * */ public void setSurname(String value) { this.surname = value; } /** * Gets the value of the pseudonym property. * * @return * possible object is * {@link String } * */ public String getPseudonym() { return pseudonym; } /** * Sets the value of the pseudonym property. * * @param value * allowed object is * {@link String } * */ public void setPseudonym(String value) { this.pseudonym = value; } /** * Gets the value of the email property. * * @return * possible object is * {@link String } * */ public String getEmail() { return email; } /** * Sets the value of the email property. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } /** * Gets the value of the notAfter property. * * @return * possible object is * {@link String } * */ public Date getNotAfter() { return notAfter; } /** * Sets the value of the notAfter property. * * @param value * allowed object is * {@link String } * */ public void setNotAfter(Date value) { this.notAfter = value; } /** * Gets the value of the notBefore property. * * @return * possible object is * {@link String } * */ public Date getNotBefore() { return notBefore; } /** * Sets the value of the notBefore property. * * @param value * allowed object is * {@link String } * */ public void setNotBefore(Date value) { this.notBefore = value; } /** * Gets the value of the publicKeySize property. * */ public int getPublicKeySize() { return publicKeySize; } /** * Sets the value of the publicKeySize property. * */ public void setPublicKeySize(int value) { this.publicKeySize = value; } /** * Gets the value of the publicKeyEncryptionAlgo property. * * @return * possible object is * {@link String } * */ public EncryptionAlgorithm getPublicKeyEncryptionAlgo() { return publicKeyEncryptionAlgo; } /** * Sets the value of the publicKeyEncryptionAlgo property. * * @param value * allowed object is * {@link String } * */ public void setPublicKeyEncryptionAlgo(EncryptionAlgorithm value) { this.publicKeyEncryptionAlgo = value; } /** * Gets the value of the entityKey property. * * @return * possible object is * {@link String } * */ public String getEntityKey() { return entityKey; } /** * Sets the value of the entityKey property. * * @param value * allowed object is * {@link String } * */ public void setEntityKey(String value) { this.entityKey = value; } /** * 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 trusted property. * */ public boolean isTrusted() { return trusted; } /** * Sets the value of the trusted property. * */ public void setTrusted(boolean value) { this.trusted = value; } /** * Gets the value of the selfSigned property. * */ public boolean isSelfSigned() { return selfSigned; } /** * Sets the value of the selfSigned property. * */ public void setSelfSigned(boolean value) { this.selfSigned = 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; } public List getSources() { if (sources == null) { sources = new ArrayList(); } return sources; } public void setSources(List sources) { this.sources = sources; } public List getCertificateChain() { if (certificateChain == null) { certificateChain = new ArrayList(); } return certificateChain; } public void setCertificateChain(List certificateChain) { this.certificateChain = certificateChain; } public List getCertificateExtensions() { if (certificateExtensions == null) { certificateExtensions = new ArrayList(); } return certificateExtensions; } public void setCertificateExtensions(List certificateExtensions) { this.certificateExtensions = certificateExtensions; } public List getTrustServiceProviders() { if (trustServiceProviders == null) { trustServiceProviders = new ArrayList(); } return trustServiceProviders; } public void setTrustServiceProviders(List trustServiceProviders) { this.trustServiceProviders = trustServiceProviders; } public List getRevocations() { if (revocations == null) { revocations = new ArrayList(); } return revocations; } public void setRevocations(List revocations) { this.revocations = revocations; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy