public abstract class XadesDOMStructure
extends iaik.xml.crypto.dom.DOMStructure
Modifier | Constructor and Description |
---|---|
protected |
XadesDOMStructure() |
protected |
XadesDOMStructure(Node node) |
Modifier and Type | Method and Description |
---|---|
static iaik.xml.crypto.dom.DOMStructure |
getInstance(Node node,
String registeredLocalName,
DOMCryptoContext context)
Unmarshal a
DOMStructure from the given DOM representation. |
String |
getNamespace()
Returns the namespace URI of the represented XML element.
|
protected static QualifyingPropertiesImpl |
getParentQualifyingPropertiesOf(iaik.xml.crypto.dom.DOMStructure domStructure)
This method is useful because it is visible to all extending classes and
allows to iterate the parent structures up until the to the
QualifyingPropertiesImpl is reached. |
protected static iaik.xml.crypto.dsig.XMLSignatureImpl |
getParentSignatureOf(iaik.xml.crypto.dom.DOMStructure domStructure)
This method is useful because it is visible to all extending classes and
allows to iterate the parent structures up until the to the
XMLSignatureImpl is reached. |
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getLocalName, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, unmarshalStructures, wrapNode
protected XadesDOMStructure()
protected XadesDOMStructure(Node node)
public String getNamespace()
getNamespace
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getNamespace()
protected static QualifyingPropertiesImpl getParentQualifyingPropertiesOf(iaik.xml.crypto.dom.DOMStructure domStructure) throws XMLSignatureException
QualifyingPropertiesImpl
is reached.domStructure
- the DOMStructure
to start with.QualifyingPropertiesImpl
.XMLSignatureException
- if no QualifyingPropertiesImpl
are found.getParentSignatureOf(DOMStructure)
protected static iaik.xml.crypto.dsig.XMLSignatureImpl getParentSignatureOf(iaik.xml.crypto.dom.DOMStructure domStructure) throws XMLSignatureException
XMLSignatureImpl
is reached.domStructure
- the DOMStructure
to start with.XMLSignatureImpl
.XMLSignatureException
- if no XMLSignatureImpl
are found.getParentSignatureOf(DOMStructure)
public static iaik.xml.crypto.dom.DOMStructure getInstance(Node node, String registeredLocalName, DOMCryptoContext context) throws MarshalException
DOMStructure
from the given DOM representation.
DOMStructure.getInstance(Node, DOMCryptoContext)
is used
for fetching this class. However, in some cases the local name differs from the registered version.
For example, the CertID
and the CertIDV2
types are both used
with element name <Cert>
within the corresponding parent elements
(e.g. <SigningCertificate>
and <SigningCertificateV2>
. However,
the name <Cert>
can only be used for registering one class (CertIDImpl
). Hence
another name (CertV2
) must be used for registering the implementing class CertIDV2Impl
.
In such cases the "parent" class (in this example SigningCertificateV2Impl
) must overwrite
method DOMStructure.unmarshalStructures(org.w3c.dom.NodeList, DOMCryptoContext)
to fetch the implementing class
of the corrsponding child structure with its registeredLocalName
instead with the local name of
the corresponding element.node
- the Node
representing the DOMStrucuture
to
unmarshalregisteredLocalName
- The (local) name used for registering
the implementing class.context
- context information for unmarshalingDOMStrucuture
represented by the given DOM
Node
, or null
if there is no
implementation for this XMLStructureMarshalException
- if an unexpected exception occurs during unmarshaling© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC