Class 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="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="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="SubjectAlternativeNames" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="subjectAlternativeName" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <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="EntityKey" 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="PSD2Info" type="{http://dss.esig.europa.eu/validation/diagnostic}PSD2Info" minOccurs="0"/> <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="SemanticsIdentifier" type="{http://dss.esig.europa.eu/validation/diagnostic}OID" minOccurs="0"/> <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
-
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.XmlBasicSignature
getBasicSignature()
Gets the value of the basicSignature property.List<XmlChainItem>
getCertificateChain()
List<XmlCertificatePolicy>
getCertificatePolicies()
String
getCommonName()
Gets the value of the commonName property.String
getCountryName()
Gets the value of the countryName property.List<String>
getCRLDistributionPoints()
XmlDigestAlgoAndValue
getDigestAlgoAndValue()
Gets the value of the digestAlgoAndValue property.String
getEmail()
Gets the value of the email property.String
getEntityKey()
Gets the value of the entityKey property.List<XmlOID>
getExtendedKeyUsages()
String
getGivenName()
Gets the value of the givenName property.List<XmlDistinguishedName>
getIssuerDistinguishedName()
Gets the value of the issuerDistinguishedName property.List<KeyUsageBit>
getKeyUsageBits()
String
getLocality()
Gets the value of the locality property.Date
getNotAfter()
Gets the value of the notAfter property.Date
getNotBefore()
Gets the value of the notBefore property.List<String>
getOCSPAccessUrls()
String
getOrganizationalUnit()
Gets the value of the organizationalUnit property.String
getOrganizationIdentifier()
Gets the value of the organizationIdentifier property.String
getOrganizationName()
Gets the value of the organizationName property.XmlPSD2Info
getPSD2Info()
Gets the value of the psd2Info property.String
getPseudonym()
Gets the value of the pseudonym property.EncryptionAlgorithm
getPublicKeyEncryptionAlgo()
Gets the value of the publicKeyEncryptionAlgo property.int
getPublicKeySize()
Gets the value of the publicKeySize property.List<XmlOID>
getQCStatementIds()
List<XmlOID>
getQCTypes()
List<XmlCertificateRevocation>
getRevocations()
XmlOID
getSemanticsIdentifier()
Gets the value of the semanticsIdentifier property.BigInteger
getSerialNumber()
Gets the value of the serialNumber property.XmlSigningCertificate
getSigningCertificate()
Gets the value of the signingCertificate property.List<CertificateSourceType>
getSources()
String
getState()
Gets the value of the state property.List<String>
getSubjectAlternativeNames()
List<XmlDistinguishedName>
getSubjectDistinguishedName()
Gets the value of the subjectDistinguishedName property.String
getSubjectSerialNumber()
Gets the value of the subjectSerialNumber property.String
getSurname()
Gets the value of the surname property.List<XmlTrustedServiceProvider>
getTrustedServiceProviders()
Boolean
isIdPkixOcspNoCheck()
Gets the value of the idPkixOcspNoCheck property.boolean
isSelfSigned()
Gets the value of the selfSigned property.boolean
isTrusted()
Gets the value of the trusted property.void
setAuthorityInformationAccessUrls(List<String> authorityInformationAccessUrls)
void
setBase64Encoded(byte[] value)
Sets the value of the base64Encoded property.void
setBasicSignature(XmlBasicSignature value)
Sets the value of the basicSignature property.void
setCertificateChain(List<XmlChainItem> certificateChain)
void
setCertificatePolicies(List<XmlCertificatePolicy> certificatePolicies)
void
setCommonName(String value)
Sets the value of the commonName property.void
setCountryName(String value)
Sets the value of the countryName property.void
setCRLDistributionPoints(List<String> crlDistributionPoints)
void
setDigestAlgoAndValue(XmlDigestAlgoAndValue value)
Sets the value of the digestAlgoAndValue property.void
setEmail(String value)
Sets the value of the email property.void
setEntityKey(String value)
Sets the value of the entityKey property.void
setExtendedKeyUsages(List<XmlOID> extendedKeyUsages)
void
setGivenName(String value)
Sets the value of the givenName property.void
setIdPkixOcspNoCheck(Boolean value)
Sets the value of the idPkixOcspNoCheck property.void
setKeyUsageBits(List<KeyUsageBit> keyUsageBits)
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
setOCSPAccessUrls(List<String> ocspAccessUrls)
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
setPSD2Info(XmlPSD2Info value)
Sets the value of the psd2Info property.void
setPseudonym(String value)
Sets the value of the pseudonym property.void
setPublicKeyEncryptionAlgo(EncryptionAlgorithm value)
Sets the value of the publicKeyEncryptionAlgo property.void
setPublicKeySize(int value)
Sets the value of the publicKeySize property.void
setQCStatementIds(List<XmlOID> qcStatementIds)
void
setQCTypes(List<XmlOID> qcTypes)
void
setRevocations(List<XmlCertificateRevocation> revocations)
void
setSelfSigned(boolean value)
Sets the value of the selfSigned property.void
setSemanticsIdentifier(XmlOID value)
Sets the value of the semanticsIdentifier property.void
setSerialNumber(BigInteger value)
Sets the value of the serialNumber property.void
setSigningCertificate(XmlSigningCertificate value)
Sets the value of the signingCertificate property.void
setSources(List<CertificateSourceType> sources)
void
setState(String value)
Sets the value of the state property.void
setSubjectAlternativeNames(List<String> subjectAlternativeNames)
void
setSubjectSerialNumber(String value)
Sets the value of the subjectSerialNumber property.void
setSurname(String value)
Sets the value of the surname property.void
setTrusted(boolean value)
Sets the value of the trusted property.void
setTrustedServiceProviders(List<XmlTrustedServiceProvider> trustedServiceProviders)
-
Field Details
-
subjectDistinguishedName
-
issuerDistinguishedName
-
serialNumber
-
subjectSerialNumber
-
commonName
-
locality
-
state
-
countryName
-
organizationIdentifier
-
organizationName
-
givenName
-
organizationalUnit
-
surname
-
pseudonym
-
email
-
subjectAlternativeNames
-
authorityInformationAccessUrls
-
crlDistributionPoints
-
ocspAccessUrls
-
sources
-
notAfter
-
notBefore
-
publicKeySize
protected int publicKeySize -
publicKeyEncryptionAlgo
-
entityKey
-
keyUsageBits
-
extendedKeyUsages
-
psd2Info
-
idPkixOcspNoCheck
-
basicSignature
-
signingCertificate
-
certificateChain
-
trusted
protected boolean trusted -
selfSigned
protected boolean selfSigned -
certificatePolicies
-
qcStatementIds
-
qcTypes
-
semanticsIdentifier
-
trustedServiceProviders
-
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 JAXB 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 JAXB 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
Gets the value of the subjectSerialNumber property.- Returns:
- possible object is
String
-
setSubjectSerialNumber
Sets the value of the subjectSerialNumber property.- Parameters:
value
- allowed object isString
-
getCommonName
Gets the value of the commonName property.- Returns:
- possible object is
String
-
setCommonName
Sets the value of the commonName property.- Parameters:
value
- allowed object isString
-
getLocality
Gets the value of the locality property.- Returns:
- possible object is
String
-
setLocality
Sets the value of the locality property.- Parameters:
value
- allowed object isString
-
getState
Gets the value of the state property.- Returns:
- possible object is
String
-
setState
Sets the value of the state property.- Parameters:
value
- allowed object isString
-
getCountryName
Gets the value of the countryName property.- Returns:
- possible object is
String
-
setCountryName
Sets the value of the countryName property.- Parameters:
value
- allowed object isString
-
getOrganizationIdentifier
Gets the value of the organizationIdentifier property.- Returns:
- possible object is
String
-
setOrganizationIdentifier
Sets the value of the organizationIdentifier property.- Parameters:
value
- allowed object isString
-
getOrganizationName
Gets the value of the organizationName property.- Returns:
- possible object is
String
-
setOrganizationName
Sets the value of the organizationName property.- Parameters:
value
- allowed object isString
-
getGivenName
Gets the value of the givenName property.- Returns:
- possible object is
String
-
setGivenName
Sets the value of the givenName property.- Parameters:
value
- allowed object isString
-
getOrganizationalUnit
Gets the value of the organizationalUnit property.- Returns:
- possible object is
String
-
setOrganizationalUnit
Sets the value of the organizationalUnit property.- Parameters:
value
- allowed object isString
-
getSurname
Gets the value of the surname property.- Returns:
- possible object is
String
-
setSurname
Sets the value of the surname property.- Parameters:
value
- allowed object isString
-
getPseudonym
Gets the value of the pseudonym property.- Returns:
- possible object is
String
-
setPseudonym
Sets the value of the pseudonym property.- Parameters:
value
- allowed object isString
-
getEmail
Gets the value of the email property.- Returns:
- possible object is
String
-
setEmail
Sets the value of the email property.- Parameters:
value
- allowed object isString
-
getNotAfter
Gets the value of the notAfter property.- Returns:
- possible object is
String
-
setNotAfter
Sets the value of the notAfter property.- Parameters:
value
- allowed object isString
-
getNotBefore
Gets the value of the notBefore property.- Returns:
- possible object is
String
-
setNotBefore
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
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
Gets the value of the entityKey property.- Returns:
- possible object is
String
-
setEntityKey
Sets the value of the entityKey property.- Parameters:
value
- allowed object isString
-
getPSD2Info
Gets the value of the psd2Info property.- Returns:
- possible object is
XmlPSD2Info
-
setPSD2Info
Sets the value of the psd2Info property.- Parameters:
value
- allowed object isXmlPSD2Info
-
isIdPkixOcspNoCheck
Gets the value of the idPkixOcspNoCheck property.- Returns:
- possible object is
Boolean
-
setIdPkixOcspNoCheck
Sets the value of the idPkixOcspNoCheck property.- Parameters:
value
- allowed object isBoolean
-
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. -
getSemanticsIdentifier
Gets the value of the semanticsIdentifier property.- Returns:
- possible object is
XmlOID
-
setSemanticsIdentifier
Sets the value of the semanticsIdentifier property.- Parameters:
value
- allowed object isXmlOID
-
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
-
getSubjectAlternativeNames
-
setSubjectAlternativeNames
-
getAuthorityInformationAccessUrls
-
setAuthorityInformationAccessUrls
-
getCRLDistributionPoints
-
setCRLDistributionPoints
-
getOCSPAccessUrls
-
setOCSPAccessUrls
-
getSources
-
setSources
-
getKeyUsageBits
-
setKeyUsageBits
-
getExtendedKeyUsages
-
setExtendedKeyUsages
-
getCertificateChain
-
setCertificateChain
-
getCertificatePolicies
-
setCertificatePolicies
-
getQCStatementIds
-
setQCStatementIds
-
getQCTypes
-
setQCTypes
-
getTrustedServiceProviders
-
setTrustedServiceProviders
-
getRevocations
-
setRevocations
-