- java.lang.Object
-
- org.apache.xml.security.transforms.TransformSpi
-
- Direct Known Subclasses:
TransformBase64Decode,TransformC14N,TransformC14NExclusive,TransformEnvelopedSignature,TransformXPath,TransformXPath2Filter,TransformXSLT
public abstract class TransformSpi extends Object
Base class which all Transform algorithms extend. The common methods that have to be overridden are theenginePerformTransform(XMLSignatureInput, OutputStream, Element, String, boolean)method. Extensions of this class must be thread-safe.
-
-
Constructor Summary
Constructors Constructor Description TransformSpi()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract StringengineGetURI()Returns the URI representation ofTransformation algorithmprotected abstract XMLSignatureInputenginePerformTransform(XMLSignatureInput input, OutputStream os, Element transformElement, String baseURI, boolean secureValidation)The mega method which MUST be implemented by the Transformation Algorithm.
-
-
-
Method Detail
-
enginePerformTransform
protected abstract XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Element transformElement, String baseURI, boolean secureValidation) throws IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException, ParserConfigurationException, SAXException
The mega method which MUST be implemented by the Transformation Algorithm.- Parameters:
input-XMLSignatureInputas the input of transformationos- where to output this transformation.transformElement- the Transform elementbaseURI- The baseURIsecureValidation- Whether secure validation is enabled- Returns:
XMLSignatureInputas the result of transformation- Throws:
CanonicalizationExceptionIOExceptionInvalidCanonicalizerExceptionParserConfigurationExceptionSAXExceptionTransformationException
-
engineGetURI
protected abstract String engineGetURI()
Returns the URI representation ofTransformation algorithm- Returns:
- the URI representation of
Transformation algorithm
-
-