public class X509DataImpl extends XmldsigDOMStructure implements X509Data
X509Data that supports the DOM XML
representation and processing mechanism.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected List |
content_
The list of
XMLStructures. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALEDRAW_X509_CERTIFICATE_TYPE, TYPE| Constructor and Description |
|---|
X509DataImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
X509DataImpl with the specified
context and node to unmarshal from. |
X509DataImpl(List content)
Creates a new instance of this
X509DataImpl with the specified
list of XMLStructures. |
| Modifier and Type | Method and Description |
|---|---|
List |
getContent()
Returns an
unmodifiable list of the content in this X509Data. |
String |
getLocalName()
Returns the local name of the represented XML element.
|
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshal the DOM node representation of this
DOMStructure and
all its child DOMStructures. |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context)
Unmarshals
DOMStructures from the given nodes. |
getNamespace, initaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFeatureSupportedprotected List content_
XMLStructures. (may not be
null)public X509DataImpl(DOMCryptoContext context, Node node) throws MarshalException
X509DataImpl with the specified
context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic X509DataImpl(List content)
X509DataImpl with the specified
list of XMLStructures.content - a list of one or more X.509 content types. Valid types are
String (subject names), byte[] (subject key
ids), X509Certificate, X509CRL, XMLStructure
(X509IssuerSerial objects or
elements from an external namespace). Subject names are
distinguished names in RFC 2253 String format. Implementations MUST
support the attribute type keywords defined in RFC 2253 (CN, L, ST,
O, OU, C, STREET, DC and UID). Implementations MAY support
additional keywords. The list is defensively copied to protect
against subsequent modification.NullPointerException - if or content is nullIllegalArgumentException - if content is emptyClassCastException - if content contains any entries that are not of one of
the valid types mentioned abovepublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public List getContent()
javax.xml.crypto.dsig.keyinfo.X509Dataunmodifiable list of the content in this X509Data. Valid
types are String(subject names), byte[] (subject key
ids), Certificate,
X509CRL, or XMLStructure(
X509IssuerSerial objects or elements from an external
namespace).getContent in interface X509DataX509Data
(never null or empty)X509Data.getContent()public Node marshal(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
DOMStructureDOMStructure and
all its child DOMStructures.
marshal in class DOMStructurecontext - the DOMMarshalContext holding context information about
the marshaling of this DOMStructureparent - where to place the marshalled nodenextSibling - before wich to place the marshalled nodeDOMStrucuture and
all its child DOMStructuruesMarshalException - if the marshaling fails for any reasonDOMStructure.marshal(DOMCryptoContext, Node, Node)protected void unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
DOMStructureDOMStructures from the given nodes.
This method is called by DOMStructure.unmarshal(DOMCryptoContext).
This method calls DOMStructure.getInstance(Node, DOMCryptoContext) for every
Element in the list of nodes. If
DOMStructure.getInstance(Node, DOMCryptoContext) returns a
DOMStructure DOMStructure.putChildStructure(DOMStructure) is
called with the returned DOMStructure as parameter.
unmarshalStructures in class DOMStructurenodes - the nodes to unmarshal fromcontext - the marshal contextMarshalException - if an exception occurs during marshalingDOMStructure.unmarshalStructures(org.w3c.dom.NodeList,
DOMCryptoContext)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC