org.apache.wss4j.dom.transform
Class AttachmentContentSignatureTransform

java.lang.Object
  extended by javax.xml.crypto.dsig.TransformService
      extended by org.apache.wss4j.dom.transform.AttachmentContentSignatureTransform
All Implemented Interfaces:
AlgorithmMethod, Transform, XMLStructure
Direct Known Subclasses:
AttachmentCompleteSignatureTransform

public class AttachmentContentSignatureTransform
extends TransformService


Field Summary
static String ATTACHMENT_CALLBACKHANDLER
           
static String TRANSFORM_URI
           
 
Fields inherited from interface javax.xml.crypto.dsig.Transform
BASE64, ENVELOPED, XPATH, XPATH2, XSLT
 
Constructor Summary
AttachmentContentSignatureTransform()
           
 
Method Summary
protected  Attachment attachmentRequestCallback(XMLCryptoContext context, String attachmentId)
           
protected  void attachmentResultCallback(XMLCryptoContext context, Attachment attachment)
           
protected  AttachmentTransformParameterSpec getAttachmentTransformParameterSpec()
           
 AlgorithmParameterSpec getParameterSpec()
           
 void init(TransformParameterSpec params)
           
 void init(XMLStructure parent, XMLCryptoContext context)
           
 boolean isFeatureSupported(String feature)
           
 void marshalParams(XMLStructure parent, XMLCryptoContext context)
           
protected  Data processAttachment(XMLCryptoContext context, OutputStream os, String attachmentUri, Attachment attachment)
           
 Data transform(Data data, XMLCryptoContext context)
           
 Data transform(Data data, XMLCryptoContext context, OutputStream os)
           
 
Methods inherited from class javax.xml.crypto.dsig.TransformService
getAlgorithm, getInstance, getInstance, getInstance, getMechanismType, getProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSFORM_URI

public static final String TRANSFORM_URI
See Also:
Constant Field Values

ATTACHMENT_CALLBACKHANDLER

public static final String ATTACHMENT_CALLBACKHANDLER
See Also:
Constant Field Values
Constructor Detail

AttachmentContentSignatureTransform

public AttachmentContentSignatureTransform()
Method Detail

init

public void init(TransformParameterSpec params)
          throws InvalidAlgorithmParameterException
Specified by:
init in class TransformService
Throws:
InvalidAlgorithmParameterException

getAttachmentTransformParameterSpec

protected AttachmentTransformParameterSpec getAttachmentTransformParameterSpec()

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

getParameterSpec

public AlgorithmParameterSpec getParameterSpec()

transform

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

transform

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

attachmentRequestCallback

protected Attachment attachmentRequestCallback(XMLCryptoContext context,
                                               String attachmentId)
                                        throws TransformException
Throws:
TransformException

attachmentResultCallback

protected void attachmentResultCallback(XMLCryptoContext context,
                                        Attachment attachment)
                                 throws TransformException
Throws:
TransformException

processAttachment

protected Data processAttachment(XMLCryptoContext context,
                                 OutputStream os,
                                 String attachmentUri,
                                 Attachment attachment)
                          throws TransformException
Throws:
TransformException

isFeatureSupported

public boolean isFeatureSupported(String feature)


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