Save This Page
Home » openjdk-7 » javax » xml » crypto » dsig » [javadoc | source]
javax.xml.crypto.dsig
public interface: Transform [javadoc | source]

All Implemented Interfaces:
    XMLStructure, AlgorithmMethod

All Known Implementing Classes:
    TransformService, CanonicalizationMethod

A representation of the XML Transform element as defined in the W3C Recommendation for XML-Signature Syntax and Processing. The XML Schema Definition is defined as:
<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.
Field Summary
static final  String BASE64    The Base64 transform algorithm URI. 
static final  String ENVELOPED    The Enveloped Signature transform algorithm URI. 
static final  String XPATH    The XPath transform algorithm URI. 
static final  String XPATH2    The XPath Filter 2 transform algorithm URI. 
static final  String XSLT    The XSLT transform algorithm URI. 
Method from javax.xml.crypto.dsig.Transform Summary:
getParameterSpec,   transform,   transform
Method from javax.xml.crypto.dsig.Transform Detail:
 public AlgorithmParameterSpec getParameterSpec()
    Returns the algorithm-specific input parameters associated with this Transform.

    The returned parameters can be typecast to a TransformParameterSpec object.

 abstract public Data transform(Data data,
    XMLCryptoContext context) throws TransformException
    Transforms the specified data using the underlying transform algorithm.
 abstract public Data transform(Data data,
    XMLCryptoContext context,
    OutputStream os) throws TransformException
    Transforms the specified data using the underlying transform algorithm. If the output of this transform is an 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.