|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.util.Base64Encoding
public class Base64Encoding
This helper class contains the MIME/64 encoding and decoding methods when dealing with password authentication. These methods can be used by any agent to encode or decode whatever they wish.
| Field Summary | |
|---|---|
static java.lang.String |
base64
|
static char[] |
encodeArray
|
| Constructor Summary | |
|---|---|
Base64Encoding()
|
|
| Method Summary | |
|---|---|
static int |
binToInt(boolean[] bin)
Converts a binary value to an integer. |
static byte[] |
decode(java.lang.String in)
Decodes a String from Base64 encoding. |
static java.lang.String |
encode(byte[] in)
Encodes a String to Base64. |
static java.lang.String |
encode(java.lang.String in)
Encodes a String to Base64. |
static boolean[] |
intToBin(int in,
int radix)
Converts an integer to a binary value. |
static void |
main(java.lang.String[] args)
|
protected static void |
printBin(boolean[] bin)
Prints a binary number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char[] encodeArray
public static java.lang.String base64
| Constructor Detail |
|---|
public Base64Encoding()
| Method Detail |
|---|
public static java.lang.String encode(java.lang.String in)
public static java.lang.String encode(byte[] in)
public static byte[] decode(java.lang.String in)
public static boolean[] intToBin(int in,
int radix)
public static int binToInt(boolean[] bin)
protected static void printBin(boolean[] bin)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||