All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mit.login.Coder

java.lang.Object
   |
   +----mit.login.Coder

public class Coder
extends Object
Class with static functions for base64 encoding and decoding as well as other utilities.


Method Index

 o decode(String)
Decodes a base64 encoded string and returns the decoded value in a byte array.
 o encode(byte[])
Encodes a byte array in base64 characters and returns the result as a String.
 o unescape_url(String)
Remove URL escape sequences

Methods

 o unescape_url
 public static String unescape_url(String aurl)
Remove URL escape sequences

Parameters:
aurl - A String with potential embedded escapes.
Returns:
the String with the escapes removed.
 o encode
 public static String encode(byte data[])
Encodes a byte array in base64 characters and returns the result as a String.

Parameters:
data - the Byte array
Returns:
The encoded string
 o decode
 public static byte[] decode(String s)
Decodes a base64 encoded string and returns the decoded value in a byte array.

Parameters:
s - The base64 encoded string
Returns:
the byte array decoded

All Packages  Class Hierarchy  This Package  Previous  Next  Index