|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.crypto.dsig.TransformService
org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer
org.jcp.xml.dsig.internal.dom.DOMCanonicalXMLC14NMethod
public final class DOMCanonicalXMLC14NMethod
DOM-based implementation of CanonicalizationMethod for Canonical XML (with or without comments). Uses Apache XML-Sec Canonicalizer.
Field Summary |
---|
Fields inherited from class org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer |
---|
apacheCanonicalizer, inclusiveNamespaces, ownerDoc, params, transformElem |
Fields inherited from interface javax.xml.crypto.dsig.Transform |
---|
BASE64, ENVELOPED, XPATH, XPATH2, XSLT |
Constructor Summary | |
---|---|
DOMCanonicalXMLC14NMethod()
|
Method Summary | |
---|---|
void |
init(TransformParameterSpec params)
Initializes this TransformService with the specified
parameters. |
Data |
transform(Data data,
XMLCryptoContext xc)
Transforms the specified data using the underlying transform algorithm. |
Methods inherited from class org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer |
---|
canonicalize, canonicalize, getParameterSpec, init, isFeatureSupported, marshalParams, transform |
Methods inherited from class javax.xml.crypto.dsig.TransformService |
---|
getAlgorithm, getInstance, getInstance, getInstance, getMechanismType, getProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMCanonicalXMLC14NMethod()
Method Detail |
---|
public void init(TransformParameterSpec params) throws java.security.InvalidAlgorithmParameterException
TransformService
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
.
init
in class TransformService
params
- the algorithm parameters (may be null
if
not required or optional)
java.security.InvalidAlgorithmParameterException
- if the specified parameters
are invalid for this algorithmpublic Data transform(Data data, XMLCryptoContext xc) throws TransformException
Transform
data
- the data to be transformedxc
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
TransformException
- if an error occurs while executing the
transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |