Package xades4j.utils
Class TransformUtils
java.lang.Object
xades4j.utils.TransformUtils
- Author:
- luis
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.xml.security.transforms.Transform
createTransform
(Algorithm algorithm, AlgorithmsParametersMarshallingProvider parametersMarshallingProvider, Document document) Creates a Transform element for a given algorithm.static org.apache.xml.security.transforms.Transforms
createTransforms
(Document document, AlgorithmsParametersMarshallingProvider algorithmsParametersMarshaller, Iterable<Algorithm> algorithms) Creates a Transforms element for a given set of algorithmsstatic org.apache.xml.security.transforms.Transforms
createTransforms
(Algorithm algorithm, AlgorithmsParametersMarshallingProvider algorithmsParametersMarshaller, Document document) Creates a Transforms element for a given algorithm
-
Method Details
-
createTransform
public static org.apache.xml.security.transforms.Transform createTransform(Algorithm algorithm, AlgorithmsParametersMarshallingProvider parametersMarshallingProvider, Document document) throws UnsupportedAlgorithmException Creates a Transform element for a given algorithm.- Parameters:
algorithm
- algorithmparametersMarshallingProvider
- algorithm parameters marshallerdocument
- the target XML document- Returns:
- the Transform
- Throws:
UnsupportedAlgorithmException
- if the algorithm is not supported
-
createTransforms
public static org.apache.xml.security.transforms.Transforms createTransforms(Document document, AlgorithmsParametersMarshallingProvider algorithmsParametersMarshaller, Iterable<Algorithm> algorithms) throws UnsupportedAlgorithmException Creates a Transforms element for a given set of algorithms- Parameters:
document
- the target XML documentalgorithmsParametersMarshaller
- algorithm parameters marshalleralgorithms
- algorithms- Returns:
- the Transforms
- Throws:
UnsupportedAlgorithmException
- if an algorithm is not supported
-
createTransforms
public static org.apache.xml.security.transforms.Transforms createTransforms(Algorithm algorithm, AlgorithmsParametersMarshallingProvider algorithmsParametersMarshaller, Document document) throws UnsupportedAlgorithmException Creates a Transforms element for a given algorithm- Parameters:
algorithm
- algorithmalgorithmsParametersMarshaller
- algorithm parameters marshallerdocument
- the target XML document- Returns:
- the Transforms
- Throws:
UnsupportedAlgorithmException
- if an algorithm is not supported
-