APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xml.internal.security.transforms.implementations

public Class TransformBase64Decode

extends TransformSpi
Class Inheritance
Imports
java.io.IOException, .OutputStream, com.sun.org.apache.xml.internal.security.c14n.CanonicalizationException, com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput, com.sun.org.apache.xml.internal.security.transforms.TransformSpi, .TransformationException, .Transforms, com.sun.org.apache.xml.internal.security.utils.XMLUtils, .JavaUtils, org.w3c.dom.Element, .Node, .Text

Implements the http://www.w3.org/2000/09/xmldsig#base64 decoding transform.

The normative specification for base64 decoding transforms is [MIME]. The base64 Transform element has no content. The input is decoded by the algorithms. This transform is useful if an application needs to sign the raw data associated with the encoded content of an element.

This transform requires an octet stream for input. If an XPath node-set (or sufficiently functional alternative) is given as input, then it is converted to an octet stream by performing operations LOGically equivalent to 1) applying an XPath transform with expression self::text(), then 2) taking the string-value of the node-set. Thus, if an XML element is identified by a barename XPointer in the Reference URI, and its content consists solely of base64 encoded character data, then this transform automatically strips away the start and end tags of the identified element and any of its descendant elements as well as any descendant comments and processing instructions. The output of this transform is an octet stream.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
engineGetURI()

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.engineGetURI.

Returns the URI representation of Transformation algorithm

protected XMLSignatureInput
enginePerformTransform(XMLSignatureInput input, OutputStream os, Element transformElement, String baseURI, boolean secureValidation)

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.enginePerformTransform.

The mega method which MUST be implemented by the Transformation Algorithm.

private void

Constructor Detail

TransformBase64Decodeback to summary
public TransformBase64Decode()

Method Detail

engineGetURIback to summary
protected String engineGetURI()

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.engineGetURI.

Doc from com.sun.org.apache.xml.internal.security.transforms.TransformSpi.engineGetURI.

Returns the URI representation of Transformation algorithm

Annotations
@Override
enginePerformTransformback to summary
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Element transformElement, String baseURI, boolean secureValidation) throws IOException, CanonicalizationException, TransformationException

Implements abstract com.sun.org.apache.xml.internal.security.transforms.TransformSpi.enginePerformTransform.

Doc from com.sun.org.apache.xml.internal.security.transforms.TransformSpi.enginePerformTransform.

The mega method which MUST be implemented by the Transformation Algorithm.

Annotations
@Override
traverseElementback to summary
private void traverseElement(Element node, StringBuilder sb)