org.apache.jcp.xml.dsig.internal.dom
Class DOMCanonicalizationMethod
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.BaseStructure
org.apache.jcp.xml.dsig.internal.dom.DOMTransform
org.apache.jcp.xml.dsig.internal.dom.DOMCanonicalizationMethod
- All Implemented Interfaces:
- AlgorithmMethod, CanonicalizationMethod, Transform, XMLStructure
public class DOMCanonicalizationMethod
- extends DOMTransform
- implements CanonicalizationMethod
DOM-based abstract implementation of CanonicalizationMethod.
- Author:
- Sean Mullan
Fields inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMTransform |
spi |
DOMCanonicalizationMethod
public DOMCanonicalizationMethod(TransformService spi)
throws InvalidAlgorithmParameterException
- Creates a
DOMCanonicalizationMethod
.
- Parameters:
spi
- TransformService
- Throws:
InvalidAlgorithmParameterException
DOMCanonicalizationMethod
public DOMCanonicalizationMethod(Element cmElem,
XMLCryptoContext context,
Provider provider)
throws MarshalException
- Creates a
DOMCanonicalizationMethod
from an element. This
ctor invokes the abstract unmarshalParams
method to unmarshal any algorithm-specific input parameters.
- Parameters:
cmElem
- a CanonicalizationMethod element
- Throws:
MarshalException
canonicalize
public Data canonicalize(Data data,
XMLCryptoContext xc)
throws TransformException
- Canonicalizes the specified data using the underlying canonicalization
algorithm. This is a convenience method that is equivalent to invoking
the
transform
method.
- Parameters:
data
- the data to be canonicalizedxc
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
- Returns:
- the canonicalized data
- Throws:
NullPointerException
- if data
is null
TransformException
- if an unexpected error occurs while
canonicalizing the data
canonicalize
public Data canonicalize(Data data,
XMLCryptoContext xc,
OutputStream os)
throws TransformException
- Throws:
TransformException
equals
public boolean equals(Object o)
- Overrides:
equals
in class DOMTransform
hashCode
public int hashCode()
- Overrides:
hashCode
in class DOMTransform
Copyright © 2000–2013 The Apache Software Foundation. All rights reserved.