org.jcp.xml.dsig.internal.dom
Class DOMCanonicalizationMethod
java.lang.Object
org.jcp.xml.dsig.internal.dom.DOMStructure
org.jcp.xml.dsig.internal.dom.DOMTransform
org.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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DOMCanonicalizationMethod
public DOMCanonicalizationMethod(TransformService spi)
throws java.security.InvalidAlgorithmParameterException
- Creates a
DOMCanonicalizationMethod
.
- Parameters:
spi
- TransformService
- Throws:
java.security.InvalidAlgorithmParameterException
DOMCanonicalizationMethod
public DOMCanonicalizationMethod(org.w3c.dom.Element cmElem,
XMLCryptoContext context,
java.security.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:
java.lang.NullPointerException
- if data
is null
TransformException
- if an unexpected error occurs while
canonicalizing the data
canonicalize
public Data canonicalize(Data data,
XMLCryptoContext xc,
java.io.OutputStream os)
throws TransformException
- Throws:
TransformException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class DOMTransform
hashCode
public int hashCode()
- Overrides:
hashCode
in class DOMTransform
Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.