Constructor and Description |
---|
Base64Codec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(byte[] input)
Decodes a byte array containing a base64 encoded data
|
byte[] |
decode(String input)
Decodes a String containing a base64 encoded data
|
byte[] |
encode(byte[] input)
Encodes a byte[] containing input, into a byte[] containing base64 encoded data
|
String |
encodeToString(byte[] input)
Encodes a byte[] containing input, into a base64 encoded String
|
public byte[] encode(byte[] input) throws Exception
input
- a byte array containing data to be encodedException
public String encodeToString(byte[] input) throws Exception
input
- a byte array containing data to be encodedException
public byte[] decode(String input) throws Exception
input
- A String containing base64 encoded dataException