public class Base64Converter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char[] |
alphabet
Provided for BC purposes
|
Constructor and Description |
---|
Base64Converter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encode(byte[] octetString)
Encode a byte array into base64 encoding.
|
java.lang.String |
encode(java.lang.String s)
Encode a string into base64 encoding.
|
public java.lang.String encode(java.lang.String s)
s
- the string to encode.public java.lang.String encode(byte[] octetString)
octetString
- the byte array to encode.