Class RelationshipTransformService
- java.lang.Object
-
- javax.xml.crypto.dsig.TransformService
-
- org.apache.poi.poifs.crypt.dsig.services.RelationshipTransformService
-
- All Implemented Interfaces:
AlgorithmMethod,Transform,XMLStructure
public class RelationshipTransformService extends TransformService
JSR105 implementation of the RelationshipTransform transformation.Specs: http://openiso.org/Ecma/376/Part2/12.2.4#26
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelationshipTransformService.RelationshipTransformParameterSpecRelationship Transform parameter specification class.
-
Constructor Summary
Constructors Constructor Description RelationshipTransformService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgorithmParameterSpecgetParameterSpec()voidinit(TransformParameterSpec params)voidinit(XMLStructure parent, XMLCryptoContext context)booleanisFeatureSupported(String feature)voidmarshalParams(XMLStructure parent, XMLCryptoContext context)static voidregisterDsigProvider()Register the provider for this TransformServiceDatatransform(Data data, XMLCryptoContext context)The relationships transform takes the XML document from the Relationships part and converts it to another XML document.Datatransform(Data data, XMLCryptoContext context, OutputStream os)-
Methods inherited from class javax.xml.crypto.dsig.TransformService
getAlgorithm, getInstance, getInstance, getInstance, getMechanismType, getProvider
-
-
-
-
Field Detail
-
TRANSFORM_URI
public static final String TRANSFORM_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerDsigProvider
public static void registerDsigProvider()
Register the provider for this TransformService- See Also:
TransformService
-
init
public void init(TransformParameterSpec params) throws InvalidAlgorithmParameterException
- Specified by:
initin classTransformService- Throws:
InvalidAlgorithmParameterException
-
init
public void init(XMLStructure parent, XMLCryptoContext context) throws InvalidAlgorithmParameterException
- Specified by:
initin classTransformService- Throws:
InvalidAlgorithmParameterException
-
marshalParams
public void marshalParams(XMLStructure parent, XMLCryptoContext context) throws MarshalException
- Specified by:
marshalParamsin classTransformService- Throws:
MarshalException
-
getParameterSpec
public AlgorithmParameterSpec getParameterSpec()
-
transform
public Data transform(Data data, XMLCryptoContext context) throws TransformException
The relationships transform takes the XML document from the Relationships part and converts it to another XML document.
-
transform
public Data transform(Data data, XMLCryptoContext context, OutputStream os) throws TransformException
- Throws:
TransformException
-
isFeatureSupported
public boolean isFeatureSupported(String feature)
-
-