Class RelationshipTransformService
- java.lang.Object
-
- javax.xml.crypto.dsig.TransformService
-
- org.apache.poi.poifs.crypt.dsig.services.RelationshipTransformService
-
- All Implemented Interfaces:
javax.xml.crypto.AlgorithmMethod,javax.xml.crypto.dsig.Transform,javax.xml.crypto.XMLStructure
public class RelationshipTransformService extends javax.xml.crypto.dsig.TransformServiceJSR105 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.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTRANSFORM_URI
-
Constructor Summary
Constructors Constructor Description RelationshipTransformService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.spec.AlgorithmParameterSpecgetParameterSpec()voidinit(javax.xml.crypto.dsig.spec.TransformParameterSpec params)voidinit(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context)booleanisFeatureSupported(java.lang.String feature)voidmarshalParams(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context)static voidregisterDsigProvider()Register the provider for this TransformServicejavax.xml.crypto.Datatransform(javax.xml.crypto.Data data, javax.xml.crypto.XMLCryptoContext context)The relationships transform takes the XML document from the Relationships part and converts it to another XML document.javax.xml.crypto.Datatransform(javax.xml.crypto.Data data, javax.xml.crypto.XMLCryptoContext context, java.io.OutputStream os)
-
-
-
Field Detail
-
TRANSFORM_URI
public static final java.lang.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(javax.xml.crypto.dsig.spec.TransformParameterSpec params) throws java.security.InvalidAlgorithmParameterException- Specified by:
initin classjavax.xml.crypto.dsig.TransformService- Throws:
java.security.InvalidAlgorithmParameterException
-
init
public void init(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context) throws java.security.InvalidAlgorithmParameterException- Specified by:
initin classjavax.xml.crypto.dsig.TransformService- Throws:
java.security.InvalidAlgorithmParameterException
-
marshalParams
public void marshalParams(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.MarshalException- Specified by:
marshalParamsin classjavax.xml.crypto.dsig.TransformService- Throws:
javax.xml.crypto.MarshalException
-
getParameterSpec
public java.security.spec.AlgorithmParameterSpec getParameterSpec()
-
transform
public javax.xml.crypto.Data transform(javax.xml.crypto.Data data, javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.dsig.TransformExceptionThe relationships transform takes the XML document from the Relationships part and converts it to another XML document.- Throws:
javax.xml.crypto.dsig.TransformException- See Also:
- 13.2.4.24 Relationships Transform Algorithm, XML Relationship Transform Algorithm
-
transform
public javax.xml.crypto.Data transform(javax.xml.crypto.Data data, javax.xml.crypto.XMLCryptoContext context, java.io.OutputStream os) throws javax.xml.crypto.dsig.TransformException- Throws:
javax.xml.crypto.dsig.TransformException
-
isFeatureSupported
public boolean isFeatureSupported(java.lang.String feature)
-
-