| java.lang.Object org.ejbca.util.Base64
Base64 | public class Base64 (Code) | | This class implements a BASE64 Character encoder/decoder as specified in RFC1521.
It extends the bouncycastle implementation and adds the functionality to split lines
with a '\n' after every 64 bytes.
version: $Id: Base64.java,v 1.1 2006/01/17 20:32:19 anatom Exp $ |
Method Summary | |
public static byte[] | decode(byte[] bytes) | public static byte[] | encode(byte[] data) encode the input data producong a base 64 encoded byte array with the output lines be split by '\n' (64 byte rows). | public static byte[] | encode(byte[] data, boolean splitlines) encode the input data producong a base 64 encoded byte array.
Parameters: data - the data to be encoded Parameters: splitlines - whether the output lines will be split by '\n' (64 byte rows) or not. |
decode | public static byte[] decode(byte[] bytes)(Code) | | |
encode | public static byte[] encode(byte[] data)(Code) | | encode the input data producong a base 64 encoded byte array with the output lines be split by '\n' (64 byte rows).
Parameters: data - data to be encoded a byte array containing the base 64 encoded data. |
encode | public static byte[] encode(byte[] data, boolean splitlines)(Code) | | encode the input data producong a base 64 encoded byte array.
Parameters: data - the data to be encoded Parameters: splitlines - whether the output lines will be split by '\n' (64 byte rows) or not. a byte array containing the base 64 encoded data. |
|
|