org.objectweb.jonas.security.realm.lib.Base64 Class Reference

List of all members.

Static Public Member Functions

char[] encode (byte[] data)
byte[] decode (char[] data)

Detailed Description

Provides encoding of raw bytes to base64-encoded characters, and decoding of base64 characters to raw bytes.

Author:
Kevin Kelley (kelley@ruralnet.net)
Version:
1.3
Date:
06 August 1998 14 February 2000 22 September 2000

Definition at line 36 of file Base64.java.


Member Function Documentation

byte [] org.objectweb.jonas.security.realm.lib.Base64.decode char[]  data  )  [static]
 

Decodes a BASE-64 encoded stream to recover the original data. White space before and after will be trimmed away, but no other manipulation of the input will be performed.

As of version 1.2 this method will properly handle input containing junk characters (newlines and the like) rather than throwing an error. It does this by pre-parsing the input and generating from that a count of VALID input characters.

Parameters:
data BASE-64 encoded stream
Returns:
original data

Definition at line 122 of file Base64.java.

char [] org.objectweb.jonas.security.realm.lib.Base64.encode byte[]  data  )  [static]
 

returns an array of base64-encoded characters to represent the passed data array.

Parameters:
data the array of bytes to encode
Returns:
base64-coded character array.

Definition at line 76 of file Base64.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:55 2005 for JOnAS by  doxygen 1.3.9.1