Class XmlCertificate
- java.lang.Object
-
- eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
-
- eu.europa.esig.dss.diagnostic.jaxb.XmlCertificate
-
- All Implemented Interfaces:
Serializable
public class XmlCertificate extends XmlAbstractToken implements Serializable
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="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="OrganizationName" 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="OrganizationalUnit" 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="AuthorityInformationAccessUrls" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="aiaUrl" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="CRLDistributionPoints" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="crlUrl" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="OCSPAccessUrls" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="ocspServerUrl" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <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="KeyUsageBits" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="KeyUsage" type="{http://dss.esig.europa.eu/validation/diagnostic}KeyUsage" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="ExtendedKeyUsages" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="extendedKeyUsagesOid" type="{http://dss.esig.europa.eu/validation/diagnostic}OID" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="IdPkixOcspNoCheck" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <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="CertificatePolicies" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="certificatePolicy" type="{http://dss.esig.europa.eu/validation/diagnostic}CertificatePolicy" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="QCStatementIds" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="qcStatementOid" type="{http://dss.esig.europa.eu/validation/diagnostic}OID" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="QCTypes" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="qcTypeOid" type="{http://dss.esig.europa.eu/validation/diagnostic}OID" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="TrustedServiceProviders" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="TrustedServiceProvider" type="{http://dss.esig.europa.eu/validation/diagnostic}TrustedServiceProvider" 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>- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
id
-
-
Constructor Summary
Constructors Constructor Description XmlCertificate()
-
Method Summary
Modifier and Type Method Description List<String>getAuthorityInformationAccessUrls()byte[]getBase64Encoded()Gets the value of the base64Encoded property.XmlBasicSignaturegetBasicSignature()Gets the value of the basicSignature property.List<XmlChainItem>getCertificateChain()List<XmlCertificatePolicy>getCertificatePolicies()StringgetCommonName()Gets the value of the commonName property.StringgetCountryName()Gets the value of the countryName property.List<String>getCRLDistributionPoints()XmlDigestAlgoAndValuegetDigestAlgoAndValue()Gets the value of the digestAlgoAndValue property.StringgetEmail()Gets the value of the email property.List<XmlOID>getExtendedKeyUsages()StringgetGivenName()Gets the value of the givenName property.List<XmlDistinguishedName>getIssuerDistinguishedName()Gets the value of the issuerDistinguishedName property.List<KeyUsageBit>getKeyUsageBits()StringgetLocality()Gets the value of the locality property.DategetNotAfter()Gets the value of the notAfter property.DategetNotBefore()Gets the value of the notBefore property.List<String>getOCSPAccessUrls()StringgetOrganizationalUnit()Gets the value of the organizationalUnit property.StringgetOrganizationName()Gets the value of the organizationName property.StringgetPseudonym()Gets the value of the pseudonym property.EncryptionAlgorithmgetPublicKeyEncryptionAlgo()Gets the value of the publicKeyEncryptionAlgo property.intgetPublicKeySize()Gets the value of the publicKeySize property.List<XmlOID>getQCStatementIds()List<XmlOID>getQCTypes()List<XmlCertificateRevocation>getRevocations()BigIntegergetSerialNumber()Gets the value of the serialNumber property.XmlSigningCertificategetSigningCertificate()Gets the value of the signingCertificate property.List<CertificateSourceType>getSources()StringgetState()Gets the value of the state property.List<XmlDistinguishedName>getSubjectDistinguishedName()Gets the value of the subjectDistinguishedName property.StringgetSurname()Gets the value of the surname property.List<XmlTrustedServiceProvider>getTrustedServiceProviders()BooleanisIdPkixOcspNoCheck()Gets the value of the idPkixOcspNoCheck property.booleanisSelfSigned()Gets the value of the selfSigned property.booleanisTrusted()Gets the value of the trusted property.voidsetAuthorityInformationAccessUrls(List<String> authorityInformationAccessUrls)voidsetBase64Encoded(byte[] value)Sets the value of the base64Encoded property.voidsetBasicSignature(XmlBasicSignature value)Sets the value of the basicSignature property.voidsetCertificateChain(List<XmlChainItem> certificateChain)voidsetCertificatePolicies(List<XmlCertificatePolicy> certificatePolicies)voidsetCommonName(String value)Sets the value of the commonName property.voidsetCountryName(String value)Sets the value of the countryName property.voidsetCRLDistributionPoints(List<String> crlDistributionPoints)voidsetDigestAlgoAndValue(XmlDigestAlgoAndValue value)Sets the value of the digestAlgoAndValue property.voidsetEmail(String value)Sets the value of the email property.voidsetExtendedKeyUsages(List<XmlOID> extendedKeyUsages)voidsetGivenName(String value)Sets the value of the givenName property.voidsetIdPkixOcspNoCheck(Boolean value)Sets the value of the idPkixOcspNoCheck property.voidsetKeyUsageBits(List<KeyUsageBit> keyUsageBits)voidsetLocality(String value)Sets the value of the locality property.voidsetNotAfter(Date value)Sets the value of the notAfter property.voidsetNotBefore(Date value)Sets the value of the notBefore property.voidsetOCSPAccessUrls(List<String> ocspAccessUrls)voidsetOrganizationalUnit(String value)Sets the value of the organizationalUnit property.voidsetOrganizationName(String value)Sets the value of the organizationName property.voidsetPseudonym(String value)Sets the value of the pseudonym property.voidsetPublicKeyEncryptionAlgo(EncryptionAlgorithm value)Sets the value of the publicKeyEncryptionAlgo property.voidsetPublicKeySize(int value)Sets the value of the publicKeySize property.voidsetQCStatementIds(List<XmlOID> qcStatementIds)voidsetQCTypes(List<XmlOID> qcTypes)voidsetRevocations(List<XmlCertificateRevocation> revocations)voidsetSelfSigned(boolean value)Sets the value of the selfSigned property.voidsetSerialNumber(BigInteger value)Sets the value of the serialNumber property.voidsetSigningCertificate(XmlSigningCertificate value)Sets the value of the signingCertificate property.voidsetSources(List<CertificateSourceType> sources)voidsetState(String value)Sets the value of the state property.voidsetSurname(String value)Sets the value of the surname property.voidsetTrusted(boolean value)Sets the value of the trusted property.voidsetTrustedServiceProviders(List<XmlTrustedServiceProvider> trustedServiceProviders)-
Methods inherited from class eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
getId, setId
-
-
-
-
Field Detail
-
subjectDistinguishedName
protected List<XmlDistinguishedName> subjectDistinguishedName
-
issuerDistinguishedName
protected List<XmlDistinguishedName> issuerDistinguishedName
-
serialNumber
protected BigInteger serialNumber
-
commonName
protected String commonName
-
locality
protected String locality
-
state
protected String state
-
countryName
protected String countryName
-
organizationName
protected String organizationName
-
givenName
protected String givenName
-
organizationalUnit
protected String organizationalUnit
-
surname
protected String surname
-
pseudonym
protected String pseudonym
-
email
protected String email
-
sources
protected List<CertificateSourceType> sources
-
notAfter
protected Date notAfter
-
notBefore
protected Date notBefore
-
publicKeySize
protected int publicKeySize
-
publicKeyEncryptionAlgo
protected EncryptionAlgorithm publicKeyEncryptionAlgo
-
keyUsageBits
protected List<KeyUsageBit> keyUsageBits
-
idPkixOcspNoCheck
protected Boolean idPkixOcspNoCheck
-
basicSignature
protected XmlBasicSignature basicSignature
-
signingCertificate
protected XmlSigningCertificate signingCertificate
-
certificateChain
protected List<XmlChainItem> certificateChain
-
trusted
protected boolean trusted
-
selfSigned
protected boolean selfSigned
-
certificatePolicies
protected List<XmlCertificatePolicy> certificatePolicies
-
trustedServiceProviders
protected List<XmlTrustedServiceProvider> trustedServiceProviders
-
revocations
protected List<XmlCertificateRevocation> revocations
-
base64Encoded
protected byte[] base64Encoded
-
digestAlgoAndValue
protected XmlDigestAlgoAndValue digestAlgoAndValue
-
-
Method Detail
-
getSubjectDistinguishedName
public List<XmlDistinguishedName> getSubjectDistinguishedName()
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 JAXB object. This is why there is not a
setmethod 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
XmlDistinguishedName
-
getIssuerDistinguishedName
public List<XmlDistinguishedName> getIssuerDistinguishedName()
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 JAXB object. This is why there is not a
setmethod 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
XmlDistinguishedName
-
getSerialNumber
public BigInteger getSerialNumber()
Gets the value of the serialNumber property.- Returns:
- possible object is
BigInteger
-
setSerialNumber
public void setSerialNumber(BigInteger value)
Sets the value of the serialNumber property.- Parameters:
value- allowed object isBigInteger
-
getCommonName
public String getCommonName()
Gets the value of the commonName property.- Returns:
- possible object is
String
-
setCommonName
public void setCommonName(String value)
Sets the value of the commonName property.- Parameters:
value- allowed object isString
-
getLocality
public String getLocality()
Gets the value of the locality property.- Returns:
- possible object is
String
-
setLocality
public void setLocality(String value)
Sets the value of the locality property.- Parameters:
value- allowed object isString
-
getState
public String getState()
Gets the value of the state property.- Returns:
- possible object is
String
-
setState
public void setState(String value)
Sets the value of the state property.- Parameters:
value- allowed object isString
-
getCountryName
public String getCountryName()
Gets the value of the countryName property.- Returns:
- possible object is
String
-
setCountryName
public void setCountryName(String value)
Sets the value of the countryName property.- Parameters:
value- allowed object isString
-
getOrganizationName
public String getOrganizationName()
Gets the value of the organizationName property.- Returns:
- possible object is
String
-
setOrganizationName
public void setOrganizationName(String value)
Sets the value of the organizationName property.- Parameters:
value- allowed object isString
-
getGivenName
public String getGivenName()
Gets the value of the givenName property.- Returns:
- possible object is
String
-
setGivenName
public void setGivenName(String value)
Sets the value of the givenName property.- Parameters:
value- allowed object isString
-
getOrganizationalUnit
public String getOrganizationalUnit()
Gets the value of the organizationalUnit property.- Returns:
- possible object is
String
-
setOrganizationalUnit
public void setOrganizationalUnit(String value)
Sets the value of the organizationalUnit property.- Parameters:
value- allowed object isString
-
getSurname
public String getSurname()
Gets the value of the surname property.- Returns:
- possible object is
String
-
setSurname
public void setSurname(String value)
Sets the value of the surname property.- Parameters:
value- allowed object isString
-
getPseudonym
public String getPseudonym()
Gets the value of the pseudonym property.- Returns:
- possible object is
String
-
setPseudonym
public void setPseudonym(String value)
Sets the value of the pseudonym property.- Parameters:
value- allowed object isString
-
getEmail
public String getEmail()
Gets the value of the email property.- Returns:
- possible object is
String
-
setEmail
public void setEmail(String value)
Sets the value of the email property.- Parameters:
value- allowed object isString
-
getNotAfter
public Date getNotAfter()
Gets the value of the notAfter property.- Returns:
- possible object is
String
-
setNotAfter
public void setNotAfter(Date value)
Sets the value of the notAfter property.- Parameters:
value- allowed object isString
-
getNotBefore
public Date getNotBefore()
Gets the value of the notBefore property.- Returns:
- possible object is
String
-
setNotBefore
public void setNotBefore(Date value)
Sets the value of the notBefore property.- Parameters:
value- allowed object isString
-
getPublicKeySize
public int getPublicKeySize()
Gets the value of the publicKeySize property.
-
setPublicKeySize
public void setPublicKeySize(int value)
Sets the value of the publicKeySize property.
-
getPublicKeyEncryptionAlgo
public EncryptionAlgorithm getPublicKeyEncryptionAlgo()
Gets the value of the publicKeyEncryptionAlgo property.- Returns:
- possible object is
String
-
setPublicKeyEncryptionAlgo
public void setPublicKeyEncryptionAlgo(EncryptionAlgorithm value)
Sets the value of the publicKeyEncryptionAlgo property.- Parameters:
value- allowed object isString
-
isIdPkixOcspNoCheck
public Boolean isIdPkixOcspNoCheck()
Gets the value of the idPkixOcspNoCheck property.- Returns:
- possible object is
Boolean
-
setIdPkixOcspNoCheck
public void setIdPkixOcspNoCheck(Boolean value)
Sets the value of the idPkixOcspNoCheck property.- Parameters:
value- allowed object isBoolean
-
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
-
isTrusted
public boolean isTrusted()
Gets the value of the trusted property.
-
setTrusted
public void setTrusted(boolean value)
Sets the value of the trusted property.
-
isSelfSigned
public boolean isSelfSigned()
Gets the value of the selfSigned property.
-
setSelfSigned
public void setSelfSigned(boolean value)
Sets the value of the selfSigned property.
-
getBase64Encoded
public byte[] getBase64Encoded()
Gets the value of the base64Encoded property.- Returns:
- possible object is byte[]
-
setBase64Encoded
public void setBase64Encoded(byte[] value)
Sets the value of the base64Encoded property.- Parameters:
value- allowed object is byte[]
-
getDigestAlgoAndValue
public XmlDigestAlgoAndValue getDigestAlgoAndValue()
Gets the value of the digestAlgoAndValue property.- Returns:
- possible object is
XmlDigestAlgoAndValue
-
setDigestAlgoAndValue
public void setDigestAlgoAndValue(XmlDigestAlgoAndValue value)
Sets the value of the digestAlgoAndValue property.- Parameters:
value- allowed object isXmlDigestAlgoAndValue
-
setAuthorityInformationAccessUrls
public void setAuthorityInformationAccessUrls(List<String> authorityInformationAccessUrls)
-
getSources
public List<CertificateSourceType> getSources()
-
setSources
public void setSources(List<CertificateSourceType> sources)
-
getKeyUsageBits
public List<KeyUsageBit> getKeyUsageBits()
-
setKeyUsageBits
public void setKeyUsageBits(List<KeyUsageBit> keyUsageBits)
-
getCertificateChain
public List<XmlChainItem> getCertificateChain()
-
setCertificateChain
public void setCertificateChain(List<XmlChainItem> certificateChain)
-
getCertificatePolicies
public List<XmlCertificatePolicy> getCertificatePolicies()
-
setCertificatePolicies
public void setCertificatePolicies(List<XmlCertificatePolicy> certificatePolicies)
-
getTrustedServiceProviders
public List<XmlTrustedServiceProvider> getTrustedServiceProviders()
-
setTrustedServiceProviders
public void setTrustedServiceProviders(List<XmlTrustedServiceProvider> trustedServiceProviders)
-
getRevocations
public List<XmlCertificateRevocation> getRevocations()
-
setRevocations
public void setRevocations(List<XmlCertificateRevocation> revocations)
-
-