Skip navigation links

Oracle Internet Directory API Reference
10g(10.1.4)

B15992-01


oracle.ldap.util
Class Base64

java.lang.Object
  extended byoracle.ldap.util.Base64


public class Base64
extends java.lang.Object

Provides encoding of raw bytes to base64 encoded bytes and decoding of base64 encoded bytes to raw bytes.


Constructor Summary
Base64()
           

 

Method Summary
static byte[] decode(byte[] inBytes)
          Decode a BASE-64 encoded sequence bytes.
static java.lang.String decode(java.lang.String inStr)
          Use this method to decode a Base64 encoded string to the orginal String.
static byte[] encode(byte[] inBytes)
          returns an array of base64-encoded characters to represent the passed data array.
static java.lang.String encode(java.lang.String inStr)
          Use this method to convert a string to Base64-encoded string.
static java.lang.String utfDecode(java.lang.String inStr)
          Use this method to decode a UTF8Base64 encoded string to the orginal String.
static java.lang.String utfEncode(java.lang.String inStr)
          Use this method to convert a UTF-8string to Base64-encoded string.

 

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

 

Constructor Detail

Base64

public Base64()

Method Detail

encode

public static java.lang.String encode(java.lang.String inStr)
Use this method to convert a string to Base64-encoded string.
Parameters:
inStr - String to be Base64 encoded.
Returns:
outStr Base64 encoded string.

utfEncode

public static java.lang.String utfEncode(java.lang.String inStr)
Use this method to convert a UTF-8string to Base64-encoded string.
Parameters:
inStr - String to be Base64 encoded.
Returns:
outStr Base64 encoded string.

decode

public static java.lang.String decode(java.lang.String inStr)
Use this method to decode a Base64 encoded string to the orginal String.
Parameters:
inStr - Base64 encoded string.
Returns:
outStr The orginal string.

utfDecode

public static java.lang.String utfDecode(java.lang.String inStr)
Use this method to decode a UTF8Base64 encoded string to the orginal String.
Parameters:
inStr - Base64 encoded string.
Returns:
outStr The orginal string.

encode

public static byte[] encode(byte[] inBytes)
returns an array of base64-encoded characters to represent the passed data array.
Parameters:
inBytes - the array of bytes to encode
Returns:
base64-coded byte array.

decode

public static byte[] decode(byte[] inBytes)
Decode a BASE-64 encoded sequence bytes. All illegal symbols in the input are ignored (CRLF, Space).
Parameters:
inBytes - A sequence of Base 64 encoded bytes.
Returns:
The original data from the BASE-64 input.

Skip navigation links

Oracle Internet Directory API Reference
10g(10.1.4)

B15992-01


Copyright © 1999, 2006 Oracle. All Rights Reserved.