public abstract class TransformsType extends DOMStructure
Transforms which are applied to some input data
according to the reference processing model of XMLDSig.DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected List |
appliedTransforms_
The list of
Transforms, that have already
been applied to the input data. |
protected List |
transforms_
The list of
Transforms. |
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Modifier | Constructor and Description |
|---|---|
protected |
TransformsType(List transforms)
Creates a new instance of this
TransformsType with the
specified list of TransformImpls. |
protected |
TransformsType(List appliedTransforms,
List transforms)
Creates a new instance of this
TransformsType with the
specified list of TransformImpls and a list of already applied
TransformImpls. |
protected |
TransformsType(Node node)
Creates a new instance of this
TransformsType with the
specified node |
| Modifier and Type | Method and Description |
|---|---|
Data |
applyTransforms(XMLCryptoContext context,
Data input)
Applies all the
Transforms contained to the
input data according to the the reference processing model of
XMLDSig. |
protected List |
checkCanonicalizationMethod(List transforms)
Replaces each
CanonicalizationMethod that maybe included in the given list
by the corresponding Transform. |
protected List |
getChildStructures()
Returns the list of child structures of this
DOMStructure. |
String |
getLocalName()
Returns the local name of the represented XML element.
|
List |
getTransforms() |
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshal the DOM node representation of this
DOMStructure and
all its child DOMStructures. |
protected void |
putChildStructure(DOMStructure childStructure)
Put an unmarshalled child structure.
|
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context)
Unmarshals
DOMStructures from the given nodes. |
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNamespace, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNodeprotected List appliedTransforms_
Transforms, that have already
been applied to the input data. These transforms are marshaled. However,
the are not applied to the input data when
applyTransforms(XMLCryptoContext, Data) is called.protected TransformsType(Node node)
TransformsType with the
specified nodenode - the nodeprotected TransformsType(List transforms)
TransformsType with the
specified list of TransformImpls.transforms - a list of TransformImplsNullPointerException - if transforms is nullIllegalArgumentException - if transforms is emptyClassCastException - if transforms contains any elements not of type
TransformImplprotected TransformsType(List appliedTransforms, List transforms)
TransformsType with the
specified list of TransformImpls and a list of already applied
TransformImpls.appliedTransforms - a list of TransformImplstransforms - a list of TransformImplsNullPointerException - if transforms or appliedTransforms is
nullIllegalArgumentException - if transforms or appliedTransforms is
emptyClassCastException - if transforms or appliedTransforms
contains any elements not of type TransformImplpublic List getTransforms()
public String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()protected List getChildStructures()
DOMStructureDOMStructure.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
A subclass has to overwrite this method to return a list of
DOMStrucutres represented by this subclass.
getChildStructures in class DOMStructureDOMStructures (may be empty, but never
null)DOMStructure.getChildStructures()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(javax.xml.crypto.dom.DOMCryptoContext,
org.w3c.dom.Node, org.w3c.dom.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,
javax.xml.crypto.dom.DOMCryptoContext)protected void putChildStructure(DOMStructure childStructure) throws MarshalException
DOMStructure
This method is called by
DOMStructure.unmarshalStructures(NodeList, DOMCryptoContext) for every
unmarshalled child structure.
A subclass has to overwrite this method to store the given child structure in its the corresponding field.
putChildStructure in class DOMStructurechildStructure - the unmarshalled child structureMarshalExceptionDOMStructure.putChildStructure(iaik.xml.crypto.dom.DOMStructure)public Data applyTransforms(XMLCryptoContext context, Data input) throws TransformException
Transforms contained to the
input data according to the the reference processing model of
XMLDSig.context - the crypto contextinput - the input dataTransformException - if an exception occurs during the transformationprotected List checkCanonicalizationMethod(List transforms)
CanonicalizationMethod that maybe included in the given list
by the corresponding Transform.transforms - A list of Transforms.Transforms where each CanonicalizationMethod
that maybe included in the given list is replaced by the corresponding Transform.© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC