public abstract class EncapsulatedPKIData extends XAdESBaseElement
The EncapsulatedPKIDataType is used to incorporate non XML
pieces of PKI data into an XML structure. Examples of such PKI data that are
widely used at the time being include X.509 certificates and revocation
lists, OCSP responses, attribute certificates and time-stamp tokens.
<xsd:element name="EncapsulatedPKIData" type="EncapsulatedPKIDataType"/>
<xsd:complexType name="EncapsulatedPKIDataType">
<xsd:simpleContent>
<xsd:extension base="xsd:base-64Binary">
<xsd:attribute name="Id" type="xsd:ID" use="optional"/>
<xsd:attribute name="Encoding" type="xsd:anyURI" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
The content of this data type is the piece of PKI data, base-64 encoded.
For encoding types see PKIEncodingType
If the Encoding attribute is not present, then it is assumed that the PKI data is ASN.1 data encoded in DER.
NOTE: The present document restricts the encoding options to only one for certain types of the aforementioned PKI data in those sections that specify XAdES properties related to these data.
The optional ID attribute can be used to make a reference to an element of this data type.
| Modifier and Type | Field and Description |
|---|---|
protected PKIEncodingType |
mEncoding |
protected byte[] |
mValue |
mContext, mElement, mId| Constructor and Description |
|---|
EncapsulatedPKIData(Context aContext) |
EncapsulatedPKIData(org.w3c.dom.Element aElement,
Context aContext)
Construct XADESBaseElement from existing
|
| Modifier and Type | Method and Description |
|---|---|
PKIEncodingType |
getEncoding() |
byte[] |
getValue() |
void |
setEncoding(PKIEncodingType aEncoding) |
void |
setValue(byte[] aValue) |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getLocalName, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdprotected PKIEncodingType mEncoding
protected byte[] mValue
public EncapsulatedPKIData(Context aContext)
public EncapsulatedPKIData(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 PKIEncodingType getEncoding()
public void setEncoding(PKIEncodingType aEncoding)
public byte[] getValue()
public void setValue(byte[] aValue)
Copyright © 2025. All rights reserved.