Class TransformSpi
java.lang.Object
org.docx4j.org.apache.xml.security.transforms.TransformSpi
- Direct Known Subclasses:
TransformBase64Decode,TransformC14N,TransformC14N11,TransformC14N11_WithComments,TransformC14NExclusive,TransformC14NExclusiveWithComments,TransformC14NWithComments,TransformEnvelopedSignature
public abstract class TransformSpi
extends java.lang.Object
Base class which all Transform algorithms extend. The common methods that
have to be overridden are the
enginePerformTransform(XMLSignatureInput, Transform) method.- Author:
- Christian Geuer-Pollmann
-
Field Summary
Fields Modifier and Type Field Description protected booleansecureValidation -
Constructor Summary
Constructors Constructor Description TransformSpi() -
Method Summary
Modifier and Type Method Description protected abstract java.lang.StringengineGetURI()Returns the URI representation ofTransformation algorithmprotected XMLSignatureInputenginePerformTransform(XMLSignatureInput input)The mega method which MUST be implemented by the Transformation Algorithm.protected XMLSignatureInputenginePerformTransform(XMLSignatureInput input, java.io.OutputStream os, Transform transformObject)The mega method which MUST be implemented by the Transformation Algorithm.protected XMLSignatureInputenginePerformTransform(XMLSignatureInput input, Transform transformObject)The mega method which MUST be implemented by the Transformation Algorithm.
-
Field Details
-
secureValidation
protected boolean secureValidation
-
-
Constructor Details
-
TransformSpi
public TransformSpi()
-
-
Method Details
-
enginePerformTransform
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, java.io.OutputStream os, Transform transformObject) throws java.io.IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXExceptionThe mega method which MUST be implemented by the Transformation Algorithm.- Parameters:
input-XMLSignatureInputas the input of transformationos- where to output this transformation.transformObject- the Transform object- Returns:
XMLSignatureInputas the result of transformation- Throws:
CanonicalizationExceptionjava.io.IOExceptionInvalidCanonicalizerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionTransformationException
-
enginePerformTransform
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, Transform transformObject) throws java.io.IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXExceptionThe mega method which MUST be implemented by the Transformation Algorithm. In order to be compatible with preexisting Transform implementations, by default this implementation invokes the deprecated, thread-unsafe methods. Subclasses should override this with a thread-safe implementation.- Parameters:
input-XMLSignatureInputas the input of transformationtransformObject- the Transform object- Returns:
XMLSignatureInputas the result of transformation- Throws:
CanonicalizationExceptionjava.io.IOExceptionInvalidCanonicalizerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionTransformationException
-
enginePerformTransform
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input) throws java.io.IOException, CanonicalizationException, InvalidCanonicalizerException, TransformationException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXExceptionThe mega method which MUST be implemented by the Transformation Algorithm.- Parameters:
input-XMLSignatureInputas the input of transformation- Returns:
XMLSignatureInputas the result of transformation- Throws:
CanonicalizationExceptionjava.io.IOExceptionInvalidCanonicalizerExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionTransformationException
-
engineGetURI
protected abstract java.lang.String engineGetURI()Returns the URI representation ofTransformation algorithm- Returns:
- the URI representation of
Transformation algorithm
-