|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.crypto.dsig.TransformService
org.jcp.xml.dsig.internal.dom.ApacheTransform
public abstract class ApacheTransform
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 | |
---|---|
java.security.spec.AlgorithmParameterSpec |
getParameterSpec()
Returns the algorithm-specific input parameters associated with this Transform . |
void |
init(XMLStructure parent,
XMLCryptoContext context)
Initializes this TransformService with the specified
parameters and document context. |
boolean |
isFeatureSupported(java.lang.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,
java.io.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 |
---|
protected org.w3c.dom.Document ownerDoc
protected org.w3c.dom.Element transformElem
protected TransformParameterSpec params
Constructor Detail |
---|
public ApacheTransform()
Method Detail |
---|
public final java.security.spec.AlgorithmParameterSpec getParameterSpec()
Transform
Transform
.
The returned parameters can be typecast to a
TransformParameterSpec
object.
null
if not specified)public void init(XMLStructure parent, XMLCryptoContext context) throws java.security.InvalidAlgorithmParameterException
TransformService
TransformService
with the specified
parameters and document context.
init
in class TransformService
parent
- a mechanism-specific structure containing the parent
structurecontext
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
java.security.InvalidAlgorithmParameterException
- if the specified parameters
are invalid for this algorithmpublic void marshalParams(XMLStructure parent, XMLCryptoContext context) throws MarshalException
TransformService
marshalParams
in class TransformService
parent
- a mechanism-specific structure containing the parent
node that the marshalled parameters should be appended tocontext
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
MarshalException
- if the parameters cannot be marshalledpublic Data transform(Data data, XMLCryptoContext xc) throws TransformException
Transform
data
- the data to be transformedxc
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
TransformException
- if an error occurs while executing the
transformpublic Data transform(Data data, XMLCryptoContext xc, java.io.OutputStream os) throws TransformException
Transform
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.
data
- the data to be transformedxc
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)os
- the OutputStream
that should be used to write
the transformed data to
null
if the data was
written to the OutputStream
parameter)
TransformException
- if an error occurs while executing the
transformpublic final boolean isFeatureSupported(java.lang.String feature)
XMLStructure
feature
- the feature name (as an absolute URI)
true
if the specified feature is supported,
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |