public abstract class CertificateValuesType extends XAdESBaseElement
If CompleteCertificateRefs and CertificateValues
are present, all the certificates referenced in CompleteCertificateRefs MUST
be present either in the ds:KeyInfo element of the signature or in the
CertificateValues property element.
The CertificateValues is an optional unsigned property and
qualifies the XML signature.
There SHALL be at most one occurence of this property in the signature.
Below follows the schema description:
<xsd:complexType name="CertificateValuesType">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="EncapsulatedX509Certificate" type="EncapsulatedPKIDataType"/>
<xsd:element name="OtherCertificate" type="AnyType"/>
</xsd:choice>
<xsd:attribute name="Id" type="xsd:ID" use="optional"/>
</xsd:complexType>
The EncapsulatedX509Certificate element is able to contain
the base-64 encoding of a DER-encoded X.509 certificate. The
OtherCertificate element is a placeholder for potential future
new formats of certificates.
Should XML time-stamp tokens based in XMLDSIG be standardized and spread, this type could also serve to contain the certification chain for any TSUs providing such time-stamp tokens, if these certificates are not already present in the time-stamp tokens themselves as part of the TSUs' signatures. In this case, an element of this type could be added as an unsigned property to the XML time-stamp token using the incorporation mechanisms defined in the present document.
Note: OtherCertificate is not supported for now...
mContext, mElement, mId| Constructor and Description |
|---|
CertificateValuesType(Context aContext) |
CertificateValuesType(Context aContext,
tr.gov.tubitak.uekae.esya.asn.attrcert.AttributeCertificate[] aCertificates) |
CertificateValuesType(Context aContext,
tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate[] aCertificates) |
CertificateValuesType(org.w3c.dom.Element aElement,
Context aContext)
Construct XADESBaseElement from existing
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificate(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate) |
java.util.List<tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate> |
getAllCertificates() |
tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate |
getCertificate(int aIndex) |
int |
getCertificateCount() |
EncapsulatedX509Certificate |
getEncapsulatedCertificate(int aIndex) |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getLocalName, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic CertificateValuesType(Context aContext)
public CertificateValuesType(Context aContext, tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate[] aCertificates) throws XMLSignatureException
XMLSignatureExceptionpublic CertificateValuesType(Context aContext, tr.gov.tubitak.uekae.esya.asn.attrcert.AttributeCertificate[] aCertificates) throws XMLSignatureException
XMLSignatureExceptionpublic CertificateValuesType(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic int getCertificateCount()
public EncapsulatedX509Certificate getEncapsulatedCertificate(int aIndex)
public void addCertificate(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate)
throws XMLSignatureException
XMLSignatureExceptionpublic tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate getCertificate(int aIndex)
throws XMLSignatureException
XMLSignatureExceptionpublic java.util.List<tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate> getAllCertificates()
throws XMLSignatureException
XMLSignatureExceptionCopyright © 2025. All rights reserved.