Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-05


oracle.security.xmlsec.transform
Class Base64Decoder

java.lang.Object
  extended by oracle.security.xmlsec.transform.XSTransformer
      extended by oracle.security.xmlsec.transform.Base64Decoder

All Implemented Interfaces:
NodeToStreamTransform

public class Base64Decoder
extends XSTransformer
implements NodeToStreamTransform

Internal use only. Applies base-64 decoding as per RFC 1421 (PEM) and RFC 2045 (MIME) as a Transform. Whitespace characters ('\r', '\n', '\t', ' ') are ignored in input.


Field Summary

 

Fields inherited from class oracle.security.xmlsec.transform.XSTransformer
transform

 

Constructor Summary
Base64Decoder()
          Creates a new Base64Decoder instance.
Base64Decoder(XSAlgorithmIdentifier trans)
          Creates a new Base64Decoder instance.

 

Method Summary
 java.lang.String getAlgorithmURI()
          Returns the URI string identifying the Transform algorithm.
 XMLContainer transform(XMLContainer source)
          Applies a Base64 decoding transformation to the given XMLContainer and returns the octet stream result in a new XMLContainer.
 java.io.InputStream transformToStream(NodeReader source)
          transform method that does not actually do the transform, but only sets up things.

 

Methods inherited from class oracle.security.xmlsec.transform.XSTransformer
applyTransforms, getInstance, getInstance, getTransform

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Base64Decoder

public Base64Decoder()
Creates a new Base64Decoder instance.

Base64Decoder

public Base64Decoder(XSAlgorithmIdentifier trans)
Creates a new Base64Decoder instance.
Parameters:
trans - A XSAlgorithmIdentifier object containing no parameter element.
Throws:
java.lang.IllegalArgumentException - If the XSAlgorithmIdentifier is not a valid Base64 decode Transform.

Method Detail

getAlgorithmURI

public java.lang.String getAlgorithmURI()
Description copied from class: XSTransformer
Returns the URI string identifying the Transform algorithm.
Specified by:
getAlgorithmURI in class XSTransformer
Returns:
This Transform's URI string.

transform

public XMLContainer transform(XMLContainer source)
                       throws TransformationException
Applies a Base64 decoding transformation to the given XMLContainer and returns the octet stream result in a new XMLContainer.
Specified by:
transform in class XSTransformer
Parameters:
source - A XMLContainer on which the transform will operate.
Returns:
A XMLContainer containing the transform octet stream result.
Throws:
TransformationException - if an error occurs during the transformation process.

transformToStream

public java.io.InputStream transformToStream(NodeReader source)
                                      throws java.io.IOException,
                                             TransformationException
Description copied from interface: NodeToStreamTransform
transform method that does not actually do the transform, but only sets up things. The actual transform should be done when somebody reads from the InputStream
Specified by:
transformToStream in interface NodeToStreamTransform
Returns:
Throws:
java.io.IOException
TransformationException

Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-05


Copyright © 2005, 2013 , Oracle. All rights reserved.