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

java.lang.Object
  extended by javax.xml.crypto.dsig.TransformService
      extended by org.apache.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

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

Author:
Sean Mullan, Erwin van der Koogh

Field Summary
protected  Document ownerDoc
           
protected  TransformParameterSpec params
           
protected  Element transformElem
           
 
Fields inherited from interface javax.xml.crypto.dsig.Transform
BASE64, ENVELOPED, XPATH, XPATH2, XSLT
 
Constructor Summary
ApacheTransform()
           
 
Method Summary
 AlgorithmParameterSpec getParameterSpec()
           
 void init(XMLStructure parent, XMLCryptoContext context)
           
 boolean isFeatureSupported(String feature)
           
 void marshalParams(XMLStructure parent, XMLCryptoContext context)
           
 Data transform(Data data, XMLCryptoContext xc)
           
 Data transform(Data data, XMLCryptoContext xc, OutputStream os)
           
 
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 Document ownerDoc

transformElem

protected Element transformElem

params

protected TransformParameterSpec params
Constructor Detail

ApacheTransform

public ApacheTransform()
Method Detail

getParameterSpec

public final AlgorithmParameterSpec getParameterSpec()

init

public void init(XMLStructure parent,
                 XMLCryptoContext context)
          throws InvalidAlgorithmParameterException
Specified by:
init in class TransformService
Throws:
InvalidAlgorithmParameterException

marshalParams

public void marshalParams(XMLStructure parent,
                          XMLCryptoContext context)
                   throws MarshalException
Specified by:
marshalParams in class TransformService
Throws:
MarshalException

transform

public Data transform(Data data,
                      XMLCryptoContext xc)
               throws TransformException
Throws:
TransformException

transform

public Data transform(Data data,
                      XMLCryptoContext xc,
                      OutputStream os)
               throws TransformException
Throws:
TransformException

isFeatureSupported

public final boolean isFeatureSupported(String feature)


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.