APIdia Launch Partner
Top Fields Constructors Methods
org.jcp.xml.dsig.internal.dom

public abstract Class ApacheCanonicalizer

extends TransformService
Class Inheritance
Known Direct Subclasses
org.jcp.xml.dsig.internal.dom.DOMCanonicalXMLC14N11Method, org.jcp.xml.dsig.internal.dom.DOMCanonicalXMLC14NMethod, org.jcp.xml.dsig.internal.dom.DOMExcC14NMethod
Imports
java.io.ByteArrayInputStream, .ByteArrayOutputStream, .OutputStream, java.security.InvalidAlgorithmParameterException, java.security.spec.AlgorithmParameterSpec, java.util.Set, javax.xml.crypto.Data, .MarshalException, .NodeSetData, .OctetStreamData, .XMLCryptoContext, .XMLStructure, javax.xml.crypto.dom.DOMCryptoContext, javax.xml.crypto.dsig.TransformException, .TransformService, javax.xml.crypto.dsig.spec.C14NMethodParameterSpec, com.sun.org.apache.xml.internal.security.c14n.Canonicalizer, .InvalidCanonicalizerException, com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput, com.sun.org.apache.xml.internal.security.transforms.Transform, org.w3c.dom.Document, .Element, .Node

Field Summary

Modifier and TypeField and Description
private Transform
protected Canonicalizer
protected String
private static final Logger
protected Document
protected C14NMethodParameterSpec
protected Element

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Data
public Data
private byte[]
getC14nBytes(OutputStream outputStream, boolean isByteArrayOutputStream)

public final AlgorithmParameterSpec
getParameterSpec()

Implements javax.xml.crypto.dsig.Transform.getParameterSpec.

Returns the algorithm-specific input parameters associated with this Transform.

public void
init(XMLStructure parent, XMLCryptoContext context)

Implements abstract javax.xml.crypto.dsig.TransformService.init.

Initializes this TransformService with the specified parameters and document context.

public final boolean
isFeatureSupported(String feature)

Implements javax.xml.crypto.XMLStructure.isFeatureSupported.

Indicates whether a specified feature is supported.

public void
marshalParams(XMLStructure parent, XMLCryptoContext context)

Implements abstract javax.xml.crypto.dsig.TransformService.marshalParams.

Marshals the algorithm-specific parameters.

public Data
transform(Data data, XMLCryptoContext xc, OutputStream os)

Implements javax.xml.crypto.dsig.Transform.transform.

Transforms the specified data using the underlying transform algorithm.

Inherited from javax.xml.crypto.dsig.TransformService:
getAlgorithmgetInstancegetInstancegetInstancegetMechanismTypegetProviderinit

Field Detail

apacheTransformback to summary
private Transform apacheTransform
canonicalizerback to summary
protected Canonicalizer canonicalizer
inclusiveNamespacesback to summary
protected String inclusiveNamespaces
LOGback to summary
private static final Logger LOG
ownerDocback to summary
protected Document ownerDoc
paramsback to summary
protected C14NMethodParameterSpec params
transformElemback to summary
protected Element transformElem

Constructor Detail

ApacheCanonicalizerback to summary
public ApacheCanonicalizer()

Method Detail

canonicalizeback to summary
public Data canonicalize(Data data, XMLCryptoContext xc) throws TransformException
canonicalizeback to summary
public Data canonicalize(Data data, XMLCryptoContext xc, OutputStream os) throws TransformException
getC14nBytesback to summary
private byte[] getC14nBytes(OutputStream outputStream, boolean isByteArrayOutputStream)
getParameterSpecback to summary
public final AlgorithmParameterSpec getParameterSpec()

Implements javax.xml.crypto.dsig.Transform.getParameterSpec.

Doc from javax.xml.crypto.dsig.Transform.getParameterSpec.

Returns the algorithm-specific input parameters associated with this Transform.

The returned parameters can be typecast to a TransformParameterSpec object.

Annotations
@Override
initback to summary
public void init(XMLStructure parent, XMLCryptoContext context) throws InvalidAlgorithmParameterException

Implements abstract javax.xml.crypto.dsig.TransformService.init.

Doc from javax.xml.crypto.dsig.TransformService.init.

Initializes this TransformService with the specified parameters and document context.

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if the specified parameters are invalid for this algorithm
isFeatureSupportedback to summary
public final boolean isFeatureSupported(String feature)

Implements javax.xml.crypto.XMLStructure.isFeatureSupported.

Doc from javax.xml.crypto.XMLStructure.isFeatureSupported.

Indicates whether a specified feature is supported.

Annotations
@Override
marshalParamsback to summary
public void marshalParams(XMLStructure parent, XMLCryptoContext context) throws MarshalException

Implements abstract javax.xml.crypto.dsig.TransformService.marshalParams.

Doc from javax.xml.crypto.dsig.TransformService.marshalParams.

Marshals the algorithm-specific parameters. If there are no parameters to be marshalled, this method returns without throwing an exception.

Annotations
@Override
Exceptions
MarshalException:
if the parameters cannot be marshalled
transformback to summary
public Data transform(Data data, XMLCryptoContext xc, OutputStream os) throws TransformException

Implements javax.xml.crypto.dsig.Transform.transform.

Doc from javax.xml.crypto.dsig.Transform.transform.

Transforms the specified data using the underlying transform algorithm. If the output of this transform is an OctetStreamData, then this method returns null and the bytes are written to the specified OutputStream. Otherwise, the OutputStream is ignored and the method behaves as if transform(Data, XMLCryptoContext) were invoked.

Annotations
@Override
Exceptions
TransformException:
if an error occurs while executing the transform