public class Transform extends BaseElement
Each Transform consists of an Algorithm attribute and content parameters, if any, appropriate for the given algorithm. The Algorithm attribute value specifies the name of the algorithm to be performed, and the Transform content provides additional data to govern the algorithm's processing of the transform input.
Each Transform consists of an Algorithm
attribute and content parameters, if any, appropriate for the given
algorithm. The Algorithm attribute value specifies the name of
the algorithm to be performed, and the Transform content
provides additional data to govern the algorithm's processing of the
transform input.
Examples of transforms include but are not limited to base64 decoding [MIME], canonicalization [XML-C14N], XPath filtering [XPath], and XSLT [XSLT]. The generic definition of the Transform element also allows application-specific transform algorithms.
The following schema fragment specifies the expected content contained within this class.
<complexType name="TransformType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice maxOccurs="unbounded" minOccurs="0">
<any processContents='lax' namespace='##other'/>
<element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
</choice>
<attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
</restriction>
</complexContent>
</complexType>
mContext, mElement, mId| Constructor and Description |
|---|
Transform(Context aContext,
java.lang.String aAlgorithm)
Transform constructor for given algorithm
|
Transform(Context aContext,
java.lang.String aAlgorithm,
org.w3c.dom.Element aParamsElement)
Generic constructor for transformation with unknown transform parameter
object.
|
Transform(Context aContext,
java.lang.String aAlgorithm,
java.lang.String aXPathExpression,
java.util.Map<java.lang.String,java.lang.String> aPrefixToNamespaceMap)
Transform constructor for XPath
|
Transform(org.w3c.dom.Element aElement,
Context aContext)
Construct Transform from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
java.lang.String |
getLocalName() |
java.lang.Object[] |
getParameters() |
void |
setAlgorithm(java.lang.String aAlgorithm) |
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic Transform(Context aContext, java.lang.String aAlgorithm) throws XMLSignatureException
aContext - of the signature containing transformaAlgorithm - transform algorithmXMLSignatureException - if there is a problem about algorithmpublic Transform(Context aContext, java.lang.String aAlgorithm, java.lang.String aXPathExpression, java.util.Map<java.lang.String,java.lang.String> aPrefixToNamespaceMap)
aContext - of the signature containing transformaAlgorithm - transform algorithmaXPathExpression - for xpath transformaPrefixToNamespaceMap - prefix-namespace pairs Xpath elementpublic Transform(Context aContext, java.lang.String aAlgorithm, org.w3c.dom.Element aParamsElement)
Transformer
to TransformEngine to execute transformation when necessary.aContext - of the signature containing transformaAlgorithm - transform algorithmaParamsElement - xml element of transform parameters if anypublic Transform(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 java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String aAlgorithm)
public java.lang.Object[] getParameters()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.