DOMStructure (Java Platform SE 8 ) (original) (raw)
- javax.xml.crypto.dom.DOMStructure
All Implemented Interfaces:
XMLStructure
public class DOMStructure
extends Object
implements XMLStructure
A DOM-specific XMLStructure. The purpose of this class is to allow a DOM node to be used to represent extensible content (any elements or mixed content) in XML Signature structures.
If a sequence of nodes is needed, the node contained in theDOMStructure
is the first node of the sequence and successive nodes can be accessed by invoking Node.getNextSibling().
If the owner document of the DOMStructure
is different than the target document of an XMLSignature
, theXMLSignature.sign(XMLSignContext) method imports the node into the target document before generating the signature.
Since:
1.6
Constructor Summary
Constructors
Constructor Description DOMStructure(Node node) Creates a DOMStructure containing the specified node. Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description Node getNode() Returns the node contained in this DOMStructure. boolean isFeatureSupported(String feature) Indicates whether a specified feature is supported. * ### Methods inherited from class java.lang.[Object](../../../../java/lang/Object.html "class in java.lang") `[clone](../../../../java/lang/Object.html#clone--), [equals](../../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../../java/lang/Object.html#finalize--), [getClass](../../../../java/lang/Object.html#getClass--), [hashCode](../../../../java/lang/Object.html#hashCode--), [notify](../../../../java/lang/Object.html#notify--), [notifyAll](../../../../java/lang/Object.html#notifyAll--), [toString](../../../../java/lang/Object.html#toString--), [wait](../../../../java/lang/Object.html#wait--), [wait](../../../../java/lang/Object.html#wait-long-), [wait](../../../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### DOMStructure public DOMStructure([Node](../../../../org/w3c/dom/Node.html "interface in org.w3c.dom") node) Creates a `DOMStructure` containing the specified node. Parameters: `node` \- the node Throws: `[NullPointerException](../../../../java/lang/NullPointerException.html "class in java.lang")` \- if `node` is `null`
Method Detail
* #### getNode public [Node](../../../../org/w3c/dom/Node.html "interface in org.w3c.dom") getNode() Returns the node contained in this `DOMStructure`. Returns: the node * #### isFeatureSupported public boolean isFeatureSupported([String](../../../../java/lang/String.html "class in java.lang") feature) Indicates whether a specified feature is supported. Specified by: `[isFeatureSupported](../../../../javax/xml/crypto/XMLStructure.html#isFeatureSupported-java.lang.String-)` in interface `[XMLStructure](../../../../javax/xml/crypto/XMLStructure.html "interface in javax.xml.crypto")` Parameters: `feature` \- the feature name (as an absolute URI) Returns: `true` if the specified feature is supported,`false` otherwise Throws: `[NullPointerException](../../../../java/lang/NullPointerException.html "class in java.lang")` \- if `feature` is `null`
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.