Transform element as
defined in the
W3C Recommendation for XML-Signature Syntax and Processing.
The XML Schema Definition is defined as:
<element name="Transform" type="ds:TransformType"/>
<complexType name="TransformType" mixed="true">
<choice minOccurs="0" maxOccurs="unbounded">
<any namespace="##other" processContents="lax"/>
<!-- (1,1) elements from (0,unbounded) namespaces -->
<element name="XPath" type="string"/>
</choice>
<attribute name="Algorithm" type="anyURI" use="required"/>
</complexType>
A Transform instance may be created by invoking the
newTransform method
of the XMLSignatureFactory class.
XMLSignatureFactory#newTransform(String, TransformParameterSpec)
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | ENVELOPED
The Enveloped Signature transform algorithm URI. |
| public static final String | |
| public static final String | XPATH2
The XPath Filter 2 transform algorithm URI. |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmParameterSpec | Returns: the algorithm-specific input parameters (may benull
if not specified)Redeclares javax. Returns the algorithm-specific input parameters associated with this
|
| public Data | Returns: the transformed datathe data to be transformed data, XMLCryptoContext the context)XMLCryptoContext containing
additional context (may be null if not applicable)Transforms the specified data using the underlying transform algorithm. |
| public Data | Returns: the transformed data (ornull if the data was
written to the OutputStream parameter)the data to be transformed data, XMLCryptoContext the context, OutputStream XMLCryptoContext containing
additional context (may be null if not applicable)the os)OutputStream that should be used to write
the transformed data toTransforms the specified data using the underlying transform algorithm. |
| BASE64 | back to summary |
|---|---|
| public static final String BASE64 The Base64 transform algorithm URI. | |
| ENVELOPED | back to summary |
|---|---|
| public static final String ENVELOPED The Enveloped Signature transform algorithm URI. | |
| XPATH | back to summary |
|---|---|
| public static final String XPATH The XPath transform algorithm URI. | |
| XPATH2 | back to summary |
|---|---|
| public static final String XPATH2 The XPath Filter 2 transform algorithm URI. | |
| XSLT | back to summary |
|---|---|
| public static final String XSLT The XSLT transform algorithm URI. | |
| getParameterSpec | back to summary |
|---|---|
| public AlgorithmParameterSpec getParameterSpec() Redeclares javax. Returns the algorithm-specific input parameters associated with this
The returned parameters can be typecast to a
| |
| transform | back to summary |
|---|---|
| public Data transform(Data data, XMLCryptoContext context) throws TransformException Transforms the specified data using the underlying transform algorithm.
| |
| transform | back to summary |
|---|---|
| public Data transform(Data data, XMLCryptoContext context, OutputStream os) throws TransformException Transforms the specified data using the underlying transform algorithm.
If the output of this transform is an
| |