org.apache.jcp.xml.dsig.internal.dom
Class DOMCanonicalXMLC14N11Method
java.lang.Object
javax.xml.crypto.dsig.TransformService
org.apache.jcp.xml.dsig.internal.dom.ApacheCanonicalizer
org.apache.jcp.xml.dsig.internal.dom.DOMCanonicalXMLC14N11Method
- All Implemented Interfaces:
- AlgorithmMethod, Transform, XMLStructure
public final class DOMCanonicalXMLC14N11Method
- extends ApacheCanonicalizer
DOM-based implementation of CanonicalizationMethod for Canonical XML 1.1
(with or without comments). Uses Apache XML-Sec Canonicalizer.
- Author:
- Sean Mullan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C14N_11
public static final String C14N_11
- See Also:
- Constant Field Values
C14N_11_WITH_COMMENTS
public static final String C14N_11_WITH_COMMENTS
- See Also:
- Constant Field Values
DOMCanonicalXMLC14N11Method
public DOMCanonicalXMLC14N11Method()
init
public void init(TransformParameterSpec params)
throws InvalidAlgorithmParameterException
- Description copied from class:
TransformService
- Initializes this
TransformService
with the specified
parameters.
If the parameters exist in XML form, the
TransformService.init(XMLStructure, XMLCryptoContext)
method should be used to
initialize the TransformService
.
- Specified by:
init
in class TransformService
- Parameters:
params
- the algorithm parameters (may be null
if
not required or optional)
- Throws:
InvalidAlgorithmParameterException
- if the specified parameters
are invalid for this algorithm
transform
public Data transform(Data data,
XMLCryptoContext xc)
throws TransformException
- Description copied from interface:
Transform
- Transforms the specified data using the underlying transform algorithm.
- Parameters:
data
- the data to be transformedxc
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
- Returns:
- the transformed data
- Throws:
TransformException
- if an error occurs while executing the
transform
Copyright © 2000–2013 The Apache Software Foundation. All rights reserved.