Class XmlCertificate
- All Implemented Interfaces:
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="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>
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected XmlBasicSignature
protected List
<XmlChainItem> protected List
<XmlCertificateExtension> protected String
protected String
protected XmlDigestAlgoAndValue
protected String
protected String
protected String
protected List
<XmlDistinguishedName> protected String
protected Date
protected Date
protected String
protected String
protected String
protected String
protected EncryptionAlgorithm
protected int
protected List
<XmlCertificateRevocation> protected boolean
protected BigInteger
protected XmlSigningCertificate
protected List
<CertificateSourceType> protected String
protected List
<XmlDistinguishedName> protected String
protected String
protected String
protected boolean
protected List
<XmlTrustServiceProvider> Fields inherited from class eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
duplicated, id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the value of the base64Encoded property.Gets the value of the basicSignature property.Gets the value of the commonName property.Gets the value of the countryName property.Gets the value of the digestAlgoAndValue property.getEmail()
Gets the value of the email property.Gets the value of the entityKey property.Gets the value of the givenName property.Gets the value of the issuerDistinguishedName property.Gets the value of the locality property.Gets the value of the notAfter property.Gets the value of the notBefore property.Gets the value of the organizationalUnit property.Gets the value of the organizationIdentifier property.Gets the value of the organizationName property.Gets the value of the pseudonym property.Gets the value of the publicKeyEncryptionAlgo property.int
Gets the value of the publicKeySize property.Gets the value of the serialNumber property.Gets the value of the signingCertificate property.getState()
Gets the value of the state property.Gets the value of the subjectDistinguishedName property.Gets the value of the subjectSerialNumber property.Gets the value of the surname property.getTitle()
Gets the value of the title property.boolean
Gets the value of the selfSigned property.boolean
Gets the value of the trusted property.void
setBase64Encoded
(byte[] value) Sets the value of the base64Encoded property.void
Sets the value of the basicSignature property.void
setCertificateChain
(List<XmlChainItem> certificateChain) void
setCertificateExtensions
(List<XmlCertificateExtension> certificateExtensions) void
setCommonName
(String value) Sets the value of the commonName property.void
setCountryName
(String value) Sets the value of the countryName property.void
Sets the value of the digestAlgoAndValue property.void
Sets the value of the email property.void
setEntityKey
(String value) Sets the value of the entityKey property.void
setGivenName
(String value) Sets the value of the givenName property.void
setLocality
(String value) Sets the value of the locality property.void
setNotAfter
(Date value) Sets the value of the notAfter property.void
setNotBefore
(Date value) Sets the value of the notBefore property.void
setOrganizationalUnit
(String value) Sets the value of the organizationalUnit property.void
setOrganizationIdentifier
(String value) Sets the value of the organizationIdentifier property.void
setOrganizationName
(String value) Sets the value of the organizationName property.void
setPseudonym
(String value) Sets the value of the pseudonym property.void
Sets the value of the publicKeyEncryptionAlgo property.void
setPublicKeySize
(int value) Sets the value of the publicKeySize property.void
setRevocations
(List<XmlCertificateRevocation> revocations) void
setSelfSigned
(boolean value) Sets the value of the selfSigned property.void
setSerialNumber
(BigInteger value) Sets the value of the serialNumber property.void
Sets the value of the signingCertificate property.void
setSources
(List<CertificateSourceType> sources) void
Sets the value of the state property.void
setSubjectSerialNumber
(String value) Sets the value of the subjectSerialNumber property.void
setSurname
(String value) Sets the value of the surname property.void
Sets the value of the title property.void
setTrusted
(boolean value) Sets the value of the trusted property.void
setTrustServiceProviders
(List<XmlTrustServiceProvider> trustServiceProviders) Methods inherited from class eu.europa.esig.dss.diagnostic.jaxb.XmlAbstractToken
getId, isDuplicated, setDuplicated, setId
-
Field Details
-
subjectDistinguishedName
-
issuerDistinguishedName
-
serialNumber
-
subjectSerialNumber
-
commonName
-
locality
-
state
-
countryName
-
organizationIdentifier
-
organizationName
-
organizationalUnit
-
title
-
givenName
-
surname
-
pseudonym
-
email
-
sources
-
notAfter
-
notBefore
-
publicKeySize
protected int publicKeySize -
publicKeyEncryptionAlgo
-
entityKey
-
basicSignature
-
signingCertificate
-
certificateChain
-
trusted
protected boolean trusted -
selfSigned
protected boolean selfSigned -
certificateExtensions
-
trustServiceProviders
-
revocations
-
base64Encoded
protected byte[] base64Encoded -
digestAlgoAndValue
-
-
Constructor Details
-
XmlCertificate
public XmlCertificate()
-
-
Method Details
-
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 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
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 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
XmlDistinguishedName
-
getSerialNumber
Gets the value of the serialNumber property.- Returns:
- possible object is
BigInteger
-
setSerialNumber
Sets the value of the serialNumber property.- Parameters:
value
- allowed object isBigInteger
-
getSubjectSerialNumber
-
setSubjectSerialNumber
-
getCommonName
-
setCommonName
-
getLocality
-
setLocality
-
getState
-
setState
-
getCountryName
-
setCountryName
-
getOrganizationIdentifier
-
setOrganizationIdentifier
-
getOrganizationName
-
setOrganizationName
-
getOrganizationalUnit
-
setOrganizationalUnit
-
getTitle
-
setTitle
-
getGivenName
-
setGivenName
-
getSurname
-
setSurname
-
getPseudonym
-
setPseudonym
-
getEmail
-
setEmail
-
getNotAfter
-
setNotAfter
-
getNotBefore
-
setNotBefore
-
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
Gets the value of the publicKeyEncryptionAlgo property.- Returns:
- possible object is
String
-
setPublicKeyEncryptionAlgo
Sets the value of the publicKeyEncryptionAlgo property.- Parameters:
value
- allowed object isString
-
getEntityKey
-
setEntityKey
-
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
-
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
Gets the value of the digestAlgoAndValue property.- Returns:
- possible object is
XmlDigestAlgoAndValue
-
setDigestAlgoAndValue
Sets the value of the digestAlgoAndValue property.- Parameters:
value
- allowed object isXmlDigestAlgoAndValue
-
getSources
-
setSources
-
getCertificateChain
-
setCertificateChain
-
getCertificateExtensions
-
setCertificateExtensions
-
getTrustServiceProviders
-
setTrustServiceProviders
-
getRevocations
-
setRevocations
-