|
|||||||||
| 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
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 |
|---|
protected org.w3c.dom.Document ownerDoc
protected org.w3c.dom.Element transformElem
protected TransformParameterSpec params
| Constructor Detail |
|---|
public ApacheTransform()
| Method Detail |
|---|
public final AlgorithmParameterSpec getParameterSpec()
AlgorithmMethodAlgorithmMethod.
AlgorithmMethod.
Returns null if this AlgorithmMethod does
not require parameters and they are not specified.
public void init(XMLStructure parent,
XMLCryptoContext context)
throws InvalidAlgorithmParameterException
TransformServiceTransformService with the specified
parameters and document context.
init in class TransformServiceparent - a mechanism-specific structure containing the parent
structurecontext - the XMLCryptoContext containing
additional context (may be null if not applicable)
InvalidAlgorithmParameterException - if the specified parameters
are invalid for this algorithm
public void marshalParams(XMLStructure parent,
XMLCryptoContext context)
throws MarshalException
TransformService
marshalParams in class TransformServiceparent - 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 marshalled
public 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
transform
public Data transform(Data data,
XMLCryptoContext xc,
OutputStream os)
throws TransformException
TransformOctetStreamData, 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(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 | ||||||||