Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transform
A representation of the XML Transform
element as
defined in the
<element name="Transform" type="ds:TransformType"/> <complexType name="TransformType" mixed="true"> <choice minOccurs="0" maxOccurs="unbounded"> <any namespace="##other" processContents="lax"/> <!-- (1,1) elements from (0,unbounded) namespaces --> <element name="XPath" type="string"/> </choice> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType>A
Transform
instance may be created by invoking the
newTransform
method
of the XMLSignatureFactory
class.
XMLSignatureFactory.newTransform(String, TransformParameterSpec)
Field Summary | |
---|---|
static String |
BASE64
The |
static String |
ENVELOPED
The |
static String |
XPATH
The |
static String |
XPATH2
The |
static String |
XSLT
The |
Method Summary | |
---|---|
AlgorithmParameterSpec |
getParameterSpec()
Returns the algorithm-specific input parameters associated with this Transform . |
Data |
transform(Data data,
XMLCryptoContext context)
Transforms the specified data using the underlying transform algorithm. |
Data |
transform(Data data,
XMLCryptoContext context,
OutputStream os)
Transforms the specified data using the underlying transform algorithm. |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Methods inherited from interface javax.xml.crypto.AlgorithmMethod |
---|
getAlgorithm |
Field Detail |
---|
static final String BASE64
static final String ENVELOPED
static final String XPATH
static final String XPATH2
static final String XSLT
Method Detail |
---|
AlgorithmParameterSpec getParameterSpec()
Transform
.
The returned parameters can be typecast to a
TransformParameterSpec
object.
getParameterSpec
in interface AlgorithmMethod
null
if not specified)Data transform(Data data, XMLCryptoContext context) throws TransformException
data
- the data to be transformedcontext
- the XMLCryptoContext
containing
additional context (may be null
if not applicable)
NullPointerException
- if data
is null
TransformException
- if an error occurs while executing the
transformData transform(Data data, XMLCryptoContext context, OutputStream os) throws TransformException
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(Data, XMLCryptoContext)
were invoked.
data
- the data to be transformedcontext
- 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)
NullPointerException
- if data
or os
is null
TransformException
- if an error occurs while executing the
transform
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the