org.apache.jcp.xml.dsig.internal.dom
Class DOMTransform
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.BaseStructure
org.apache.jcp.xml.dsig.internal.dom.DOMTransform
- All Implemented Interfaces:
- AlgorithmMethod, Transform, XMLStructure
- Direct Known Subclasses:
- DOMCanonicalizationMethod
public class DOMTransform
- extends BaseStructure
- implements Transform
DOM-based abstract implementation of Transform.
- Author:
- Sean Mullan
spi
protected TransformService spi
DOMTransform
public DOMTransform(TransformService spi)
- Creates a
DOMTransform.
- Parameters:
spi - the TransformService
DOMTransform
public DOMTransform(Element transElem,
XMLCryptoContext context,
Provider provider)
throws MarshalException
- Creates a
DOMTransform from an element. It unmarshals any
algorithm-specific input parameters.
- Parameters:
transElem - a Transform element
- Throws:
MarshalException
getParameterSpec
public final AlgorithmParameterSpec getParameterSpec()
- Specified by:
getParameterSpec in interface AlgorithmMethod- Specified by:
getParameterSpec in interface Transform
getAlgorithm
public final String getAlgorithm()
- Specified by:
getAlgorithm in interface AlgorithmMethod
marshal
public void marshal(XmlWriter xwriter,
String dsPrefix,
XMLCryptoContext context)
throws MarshalException
- This method marshals any algorithm-specific parameters.
- Throws:
MarshalException
transform
public Data transform(Data data,
XMLCryptoContext xc)
throws TransformException
- Transforms the specified data using the underlying transform algorithm.
- Specified by:
transform in interface Transform
- Parameters:
data - the data to be transformedxc - the XMLCryptoContext containing
additional context (may be null if not applicable)
- Returns:
- the transformed data
- Throws:
NullPointerException - if data is null
XMLSignatureException - if an unexpected error occurs while
executing the transform
TransformException
transform
public Data transform(Data data,
XMLCryptoContext xc,
OutputStream os)
throws TransformException
- Transforms the specified data using the underlying transform algorithm.
- Specified by:
transform in interface Transform
- Parameters:
data - the data to be transformedxc - the XMLCryptoContext containing
additional context (may be null if not applicable)os - the OutputStream that should be used to write
the transformed data to
- Returns:
- the transformed data
- Throws:
NullPointerException - if data is null
XMLSignatureException - if an unexpected error occurs while
executing the transform
TransformException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.