|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.crypto.dsig.TransformService
com.ibm.xml.enc.dom.XPathDOMTransform
public class XPathDOMTransform
Field Summary |
---|
Fields inherited from interface javax.xml.crypto.dsig.Transform |
---|
BASE64, ENVELOPED, XPATH, XPATH2, XSLT |
Constructor Summary | |
---|---|
XPathDOMTransform()
|
Method Summary | |
---|---|
java.security.spec.AlgorithmParameterSpec |
getParameterSpec()
Returns the algorithm-specific input parameters associated with this Transform . |
void |
init(TransformParameterSpec spec)
Initializes this TransformService with the specified
parameters. |
void |
init(XMLStructure parent,
XMLCryptoContext xcontext)
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 xcontext)
Marshals the algorithm-specific parameters. |
protected NodeSetData |
toNodeSet(Data in,
XMLCryptoContext xcontext)
|
Data |
transform(Data in,
XMLCryptoContext xccontext)
Transforms the specified data using the underlying transform algorithm. |
Data |
transform(Data in,
XMLCryptoContext xcontext,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathDOMTransform()
Method Detail |
---|
public void init(TransformParameterSpec spec) throws java.security.InvalidAlgorithmParameterException
TransformService
TransformService
with the specified
parameters.
If the parameters exist in XML form, the
TransformService.init(XMLStructure, XMLCryptoContext)
method should be used to
initialize the TransformService
.
init
in class TransformService
spec
- the algorithm parameters (may be null
if
not required or optional)
java.security.InvalidAlgorithmParameterException
- if the specified parameters
are invalid for this algorithmpublic void marshalParams(XMLStructure parent, XMLCryptoContext xcontext) throws MarshalException
TransformService
marshalParams
in class TransformService
parent
- a mechanism-specific structure containing the parent
node that the marshalled parameters should be appended toxcontext
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
MarshalException
- if the parameters cannot be marshalledpublic void init(XMLStructure parent, XMLCryptoContext xcontext) throws java.security.InvalidAlgorithmParameterException
TransformService
TransformService
with the specified
parameters and document context.
init
in class TransformService
xcontext
- may be nullparent
- a mechanism-specific structure containing the parent
structure
java.security.InvalidAlgorithmParameterException
- if the specified parameters
are invalid for this algorithmpublic Data transform(Data in, XMLCryptoContext xcontext, 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.
in
- the data to be transformedxcontext
- 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 boolean isFeatureSupported(java.lang.String feature)
XMLStructure
feature
- the feature name (as an absolute URI)
true
if the specified feature is supported,
false
otherwisepublic Data transform(Data in, XMLCryptoContext xccontext) throws TransformException
Transform
in
- the data to be transformedxccontext
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
TransformException
- if an error occurs while executing the
transformpublic java.security.spec.AlgorithmParameterSpec getParameterSpec()
Transform
Transform
.
The returned parameters can be typecast to a
TransformParameterSpec
object.
null
if not specified)protected NodeSetData toNodeSet(Data in, XMLCryptoContext xcontext) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, URIReferenceException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
URIReferenceException
|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |