java.lang.Object
org.apache.xml.security.transforms.TransformSpi
- Direct Known Subclasses:
TransformBase64Decode,TransformC14N,TransformC14NExclusive,TransformEnvelopedSignature,TransformXPath,TransformXPath2Filter,TransformXSLT
Base class which all Transform algorithms extend. The common methods that
have to be overridden are the
enginePerformTransform(XMLSignatureInput, OutputStream, Element, String, boolean) method.
Extensions of this class must be thread-safe.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringReturns 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.
-
Constructor Details
-
TransformSpi
public TransformSpi()
-
-
Method Details
-
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
Returns the URI representation ofTransformation algorithm- Returns:
- the URI representation of
Transformation algorithm
-