org.jcp.xml.dsig.internal.dom
Class ApacheTransform

java.lang.Object
  extended by javax.xml.crypto.dsig.TransformService
      extended by org.jcp.xml.dsig.internal.dom.ApacheTransform
All Implemented Interfaces:
AlgorithmMethod, Transform, XMLStructure
Direct Known Subclasses:
DOMBase64Transform, DOMEnvelopedTransform, DOMXPathFilter2Transform, DOMXPathTransform, DOMXSLTTransform

public abstract class ApacheTransform
extends TransformService

Disabled: no SafeJ information.

This is a wrapper/glue class which invokes the Apache XML-Security Transform.


Field Summary
protected  org.w3c.dom.Document ownerDoc
           
protected  TransformParameterSpec params
           
protected  org.w3c.dom.Element transformElem
           
 
Fields inherited from interface javax.xml.crypto.dsig.Transform
BASE64, ENVELOPED, XPATH, XPATH2, XSLT
 
Constructor Summary
ApacheTransform()
           
 
Method Summary
 AlgorithmParameterSpec getParameterSpec()
          Returns the algorithm parameters of this AlgorithmMethod.
 void init(XMLStructure parent, XMLCryptoContext context)
          Initializes this TransformService with the specified parameters and document context.
 boolean isFeatureSupported(String feature)
          Indicates whether a specified feature is supported.
 void marshalParams(XMLStructure parent, XMLCryptoContext context)
          Marshals the algorithm-specific parameters.
 Data transform(Data data, XMLCryptoContext xc)
          Transforms the specified data using the underlying transform algorithm.
 Data transform(Data data, XMLCryptoContext xc, OutputStream os)
          Transforms the specified data using the underlying transform algorithm.
 
Methods inherited from class javax.xml.crypto.dsig.TransformService
getAlgorithm, getInstance, getInstance, getInstance, getMechanismType, getProvider, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ownerDoc

protected org.w3c.dom.Document ownerDoc
Class is disabled.


transformElem

protected org.w3c.dom.Element transformElem
Class is disabled.


params

protected TransformParameterSpec params
Class is disabled.

Constructor Detail

ApacheTransform

public ApacheTransform()
Class is disabled.

Method Detail

getParameterSpec

public final AlgorithmParameterSpec getParameterSpec()
Class is disabled.

Description copied from interface: AlgorithmMethod
Returns the algorithm parameters of this AlgorithmMethod.

Returns:
the algorithm parameters of this AlgorithmMethod. Returns null if this AlgorithmMethod does not require parameters and they are not specified.

init

public void init(XMLStructure parent,
                 XMLCryptoContext context)
          throws InvalidAlgorithmParameterException
Class is disabled.

Description copied from class: TransformService
Initializes this TransformService with the specified parameters and document context.

Specified by:
init in class TransformService
Parameters:
parent - a mechanism-specific structure containing the parent structure
context - the XMLCryptoContext containing additional context (may be null if not applicable)
Throws:
InvalidAlgorithmParameterException - if the specified parameters are invalid for this algorithm

marshalParams

public void marshalParams(XMLStructure parent,
                          XMLCryptoContext context)
                   throws MarshalException
Class is disabled.

Description copied from class: TransformService
Marshals the algorithm-specific parameters. If there are no parameters to be marshalled, this method returns without throwing an exception.

Specified by:
marshalParams in class TransformService
Parameters:
parent - a mechanism-specific structure containing the parent node that the marshalled parameters should be appended to
context - the XMLCryptoContext containing additional context (may be null if not applicable)
Throws:
MarshalException - if the parameters cannot be marshalled

transform

public Data transform(Data data,
                      XMLCryptoContext xc)
               throws TransformException
Class is disabled.

Description copied from interface: Transform
Transforms the specified data using the underlying transform algorithm.

Parameters:
data - the data to be transformed
xc - the XMLCryptoContext containing additional context (may be null if not applicable)
Returns:
the transformed data
Throws:
TransformException - if an error occurs while executing the transform

transform

public Data transform(Data data,
                      XMLCryptoContext xc,
                      OutputStream os)
               throws TransformException
Class is disabled.

Description copied from interface: 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.transform(Data, XMLCryptoContext) were invoked.

Parameters:
data - the data to be transformed
xc - the XMLCryptoContext containing additional context (may be null if not applicable)
os - the OutputStream that should be used to write the transformed data to
Returns:
the transformed data (or null if the data was written to the OutputStream parameter)
Throws:
TransformException - if an error occurs while executing the transform

isFeatureSupported

public final boolean isFeatureSupported(String feature)
Class is disabled.

Description copied from interface: XMLStructure
Indicates whether a specified feature is supported.

Parameters:
feature - the feature name (as an absolute URI)
Returns:
true if the specified feature is supported, false otherwise