public class XPathTransformService extends TransformServiceImpl
TransformService implements the
XPath Filtering transform (http://www.w3.org/TR/1999/REC-xpath-19991116) as specified by the W3C
recommendation XML-Signature
Syntax and Processing
This implementation uses an XPathSieve.
XPathFilterParameterSpec (mandatory)NodeSetData (Iterator returns DOM
Nodes in the same order as provided by the input
iterator)XPathSievetransformNode_| Constructor and Description |
|---|
XPathTransformService() |
| Modifier and Type | Method and Description |
|---|---|
List |
getAlgorithmParameters()
Returns the list of algorithm parameter.
|
AlgorithmParameterSpec |
getParameterSpec()
Returns the algorithm-specific input parameters associated with this
Transform. |
protected void |
setParameterSpec(AlgorithmParameterSpec spec)
Sets the algorithm parameter for this
TransformService. |
protected void |
setParameterSpec(List params)
Sets the algorithm parameter for this
TransformService. |
Data |
transform(Data data,
XMLCryptoContext context)
Transforms the specified data using the underlying transform algorithm.
|
init, init, isFeatureSupported, marshalParams, parse, parse, transformgetAlgorithm, getInstance, getInstance, getInstance, getMechanismType, getProviderprotected void setParameterSpec(AlgorithmParameterSpec spec) throws InvalidAlgorithmParameterException
TransformServiceImplTransformService.setParameterSpec in class TransformServiceImplspec - the AlgorithmParameterSpecInvalidAlgorithmParameterException - if the supplied spec is not appropriate for this
TransformServiceTransformServiceImpl.setParameterSpec(java.security.spec.AlgorithmParameterSpec)protected void setParameterSpec(List params) throws InvalidAlgorithmParameterException
TransformServiceImplTransformService.setParameterSpec in class TransformServiceImplparams - the list of AlgorithmParameterImplsInvalidAlgorithmParameterException - if supplied params are not appropriate for this
TransformServiceTransformServiceImpl.setParameterSpec(java.util.List)public List getAlgorithmParameters()
TransformServiceImplgetAlgorithmParameters in class TransformServiceImplAlgorithmParameterImpls (may be empty but never
null)TransformServiceImpl.getAlgorithmParameters()public AlgorithmParameterSpec getParameterSpec()
javax.xml.crypto.dsig.TransformTransform.
The returned parameters can be typecast to a
TransformParameterSpec object.
AlgorithmMethod.
Returns null if this AlgorithmMethod does
not require parameters and they are not specified.AlgorithmMethod.getParameterSpec()public Data transform(Data data, XMLCryptoContext context) throws TransformException
javax.xml.crypto.dsig.Transformdata - the data to be transformedcontext - the XMLCryptoContext containing additional context (may
be null if not applicable)TransformException - if an error occurs while executing the transformTransform.transform(javax.xml.crypto.Data,
javax.xml.crypto.XMLCryptoContext)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC