public class DOMCanonicalizationMethod extends DOMTransform implements CanonicalizationMethod
spi
EXCLUSIVE, EXCLUSIVE_WITH_COMMENTS, INCLUSIVE, INCLUSIVE_WITH_COMMENTS
Constructor and Description |
---|
DOMCanonicalizationMethod(Element cmElem,
XMLCryptoContext context,
Provider provider)
Creates a
DOMCanonicalizationMethod from an element. |
DOMCanonicalizationMethod(TransformService spi)
Creates a
DOMCanonicalizationMethod . |
Modifier and Type | Method and Description |
---|---|
Data |
canonicalize(Data data,
XMLCryptoContext xc)
Canonicalizes the specified data using the underlying canonicalization
algorithm.
|
Data |
canonicalize(Data data,
XMLCryptoContext xc,
OutputStream os) |
boolean |
equals(Object o) |
int |
hashCode() |
getAlgorithm, getParameterSpec, marshal, transform, transform
equalsContent, isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getParameterSpec
isFeatureSupported
getAlgorithm
public DOMCanonicalizationMethod(TransformService spi) throws InvalidAlgorithmParameterException
DOMCanonicalizationMethod
.spi
- TransformServiceInvalidAlgorithmParameterException
public DOMCanonicalizationMethod(Element cmElem, XMLCryptoContext context, Provider provider) throws MarshalException
DOMCanonicalizationMethod
from an element. It unmarshals any
algorithm-specific input parameters.cmElem
- a CanonicalizationMethod elementMarshalException
public Data canonicalize(Data data, XMLCryptoContext xc) throws TransformException
transform
method.data
- the data to be canonicalizedxc
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)NullPointerException
- if data
is null
TransformException
- if an unexpected error occurs while
canonicalizing the datapublic Data canonicalize(Data data, XMLCryptoContext xc, OutputStream os) throws TransformException
TransformException
public boolean equals(Object o)
equals
in class DOMTransform
public int hashCode()
hashCode
in class DOMTransform
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.