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.
-
decode(String)
- Decodes a base64 encoded string and returns the decoded value
in a byte array.
-
encode(byte[])
- Encodes a byte array in base64 characters and returns the result
as a String.
-
unescape_url(String)
- Remove URL escape sequences
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.
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
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