| |
|
| java.lang.Object com.sun.portal.cli.cert.Base64
Base64 | public class Base64 (Code) | | This class encodes and decodes data to and from the Base64 format according
to the specs in RFC 1521 (Section 5.2).
author: Dan Crawford |
Method Summary | |
public static byte[] | decode(byte[] encData) This is where the base 64 decoding is done.
Parameters: encData - the Base64 encoded data that is to be decoded. | public static String | encode(String theData) Convert the String into an array of bytes then send the bytes
through the
encoding algorithim. | public static byte[] | encode(byte[] theBytes) This is where the actual encoding takes place.
returns a byte array of the encoded bytes.
Parameters: theBytes - a byte array that is to be Base64 encoded. |
decode | public static byte[] decode(byte[] encData)(Code) | | This is where the base 64 decoding is done.
Parameters: encData - the Base64 encoded data that is to be decoded. byte[] the decoded data. |
encode | public static String encode(String theData)(Code) | | Convert the String into an array of bytes then send the bytes
through the
encoding algorithim. Return the encoded data as a String object.
Parameters: theData - the data that is to be Base64 encoded. String the base64 encoded data as a String object. |
encode | public static byte[] encode(byte[] theBytes)(Code) | | This is where the actual encoding takes place.
returns a byte array of the encoded bytes.
Parameters: theBytes - a byte array that is to be Base64 encoded. byte[] the Base64 encoded data. |
|
|
|