|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cms.crypto.Base64
public class Base64
Encodes binary data into the base64 format so that the data is then "mail safe". Each three bytes of binary data becomes four. This format is preferable to a hexadecimal representation for large binary values, such as digital certificates and Certificate Revocation Lists (CRLs), since a mail safe hexadecimal representation doubles the size of the binary data.
For more information on the base64 transformation see RFC 2045
| Constructor Summary | |
|---|---|
Base64()
Constructor for Base64 |
|
| Method Summary | |
|---|---|
byte[] |
decode(byte[] encoded)
Decodes base64 encoded data from a stream into binary format data. |
void |
decode(byte[] encoded,
java.io.OutputStream out)
Decodes base64 encoded data to an output stream. |
byte[] |
encode(byte[] data)
Encodes binary data into a "mail safe" base64 format byte array. |
void |
encode(byte[] data,
java.io.OutputStream out)
Encodes binary data into a "mail safe" base64 format on a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Base64()
Base64
| Method Detail |
|---|
public byte[] encode(byte[] data)
throws Base64Exception
data - binary value to be base64 encoded
Base64Exception
public void encode(byte[] data,
java.io.OutputStream out)
throws Base64Exception
data - binary value to be base64 encodedout - target output stream
Base64Exception
public byte[] decode(byte[] encoded)
throws Base64Exception
encoded - a base64 encoded value to be decoded
Base64Exception
public void decode(byte[] encoded,
java.io.OutputStream out)
throws Base64Exception
encoded - a base64 encoded value to be decodedout - target output stream
Base64Exception
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||