Package org.apache.wss4j.dom.transform
Class AttachmentContentSignatureTransform
- java.lang.Object
-
- javax.xml.crypto.dsig.TransformService
-
- org.apache.wss4j.dom.transform.AttachmentContentSignatureTransform
-
- All Implemented Interfaces:
AlgorithmMethod
,Transform
,XMLStructure
- Direct Known Subclasses:
AttachmentCompleteSignatureTransform
public class AttachmentContentSignatureTransform extends TransformService
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTACHMENT_CALLBACKHANDLER
static String
TRANSFORM_URI
-
Constructor Summary
Constructors Constructor Description AttachmentContentSignatureTransform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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
-
-
Method Detail
-
init
public void init(TransformParameterSpec params) throws InvalidAlgorithmParameterException
- Specified by:
init
in classTransformService
- Throws:
InvalidAlgorithmParameterException
-
getAttachmentTransformParameterSpec
protected AttachmentTransformParameterSpec getAttachmentTransformParameterSpec()
-
init
public void init(XMLStructure parent, XMLCryptoContext context) throws InvalidAlgorithmParameterException
- Specified by:
init
in classTransformService
- Throws:
InvalidAlgorithmParameterException
-
marshalParams
public void marshalParams(XMLStructure parent, XMLCryptoContext context) throws MarshalException
- Specified by:
marshalParams
in classTransformService
- 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)
-
-