public class C14NTransformService extends TransformServiceImpl implements CanonicalizationMethod
TransformService implements the the
Canonical XML transform (http://www.w3.org/TR/2001/REC-xml-c14n-20010315) as specified by the W3C
recommendation Canonical XML
Version 1.0 and the Exclusive XML Canonicalization transform (
http://www.w3.org/2001/10/
xml-exc-c14n# ) as specified by the W3C recommendation Exclusive XML
Canonicalization Version 1.0.
Canonical XML 1.1 identified by http://www.w3.org /2006/12/xml-c14n11 is currently a Candidate Recommendation and hence supported experimentally only.
Note: If NodeSetData is provided as input, the
Nodes returned by the Iterator must be given in document
order!
ExcC14NParameterSpec (optional)transformNode_EXCLUSIVE, EXCLUSIVE_WITH_COMMENTS, INCLUSIVE, INCLUSIVE_WITH_COMMENTS| Constructor and Description |
|---|
C14NTransformService() |
| 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
CanonicalizationMethod. |
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, getProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFeatureSupportedgetAlgorithmprotected 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.CanonicalizationMethodCanonicalizationMethod.
The returned parameters can be typecast to a
C14NMethodParameterSpecobject.
getParameterSpec in interface AlgorithmMethodgetParameterSpec in interface CanonicalizationMethodgetParameterSpec in interface TransformAlgorithmMethod.
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.Transformtransform in interface 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