public class Transforms extends BaseElement
The optional Transforms element contains an ordered list of
Transform elements; these describe how the signer obtained the
data object that was digested. The output of each Transform
serves as input to the next Transform. The input to the first
Transform is the result of dereferencing the URI
attribute of the Reference element. The output from the last
Transform is the input for the DigestMethod
algorithm. When transforms are applied the signer is not signing the native
(original) document but the resulting (transformed) document.
The following schema fragment specifies the expected content contained within this class.
<complexType name="TransformsType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.w3.org/2000/09/xmldsig#}Transform" maxOccurs="unbounded"/>
</sequence>
</restriction>
</complexContent>
</complexType>
mContext, mElement, mId| Constructor and Description |
|---|
Transforms(Context aBaglam) |
Transforms(org.w3c.dom.Element aElement,
Context aContext)
Construct KeyInfo from existing
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTransform(Transform aTransform)
Add user defined transform step.
|
Document |
apply(Document aSource)
Applies all included
Transforms to input and returns the
result of these transformations. |
java.lang.String |
getLocalName() |
Transform |
getTransform(int aIndex)
Return the ith
. |
int |
getTransformCount() |
boolean |
hasC14nTransform() |
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic Transforms(Context aBaglam)
public Transforms(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 void addTransform(Transform aTransform)
aTransform - user defined transformpublic Transform getTransform(int aIndex)
aIndex - index of Transform to returnpublic int getTransformCount()
Transformspublic Document apply(Document aSource) throws XMLSignatureException
Transforms to input and returns the
result of these transformations.aSource - object to be transformedXMLSignatureException - if anything goes wrong.public boolean hasC14nTransform()
C14nTransformpublic java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.