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 class
RelationshipTransformService.RelationshipTransformParameterSpec
Relationship 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 AlgorithmParameterSpec
getParameterSpec()
void
init(TransformParameterSpec params)
void
init(XMLStructure parent, XMLCryptoContext context)
boolean
isFeatureSupported(String feature)
void
marshalParams(XMLStructure parent, XMLCryptoContext context)
static void
registerDsigProvider()
Register the provider for this TransformServiceData
transform(Data data, XMLCryptoContext context)
The relationships transform takes the XML document from the Relationships part and converts it to another XML document.Data
transform(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:
init
in classTransformService
- Throws:
InvalidAlgorithmParameterException
-
init
public void init(XMLStructure parent, XMLCryptoContext context) throws InvalidAlgorithmParameterException
- Specified by:
init
in classTransformService
- Throws:
InvalidAlgorithmParameterException
-
marshalParams
public void marshalParams(XMLStructure parent, XMLCryptoContext context) throws MarshalException
- Specified by:
marshalParams
in 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)
-
-