iaik.me.utils
Class Base64

java.lang.Object
  |
  +--iaik.me.utils.Base64

public class Base64
extends Object


Method Summary
static byte[] decode(String s)
          Decodes a Base64 string into a bytearray.
static String encode(byte[] data)
          Encodes a bytearray into a Base64 string.
static String encode(byte[] data, int ofs, int length)
          Encodes a bytearray into a Base64 string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static String encode(byte[] data)
Encodes a bytearray into a Base64 string.
Parameters:
bytearray -  
Returns:
base64 string

encode

public static String encode(byte[] data,
                            int ofs,
                            int length)
Encodes a bytearray into a Base64 string.
Parameters:
data -  
offset, - where to start encoding in the bytearray
length, - how much bytes to convert starting from the offset
Returns:
the Base64 encoded string

decode

public static byte[] decode(String s)
                     throws IOException
Decodes a Base64 string into a bytearray.
Parameters:
base64 - string
Returns:
bytearray
Throws:
IOException -  

This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note).

IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC