public class Base64Util extends Object
Constructor and Description |
---|
Base64Util() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String s)
Base64 encoding methods of Authentication
Taken from http://iharder.sourceforge.net/current/java/base64/ (public domain)
and adapted for our needs here.
|
static String |
encode(byte[] source)
Encodes a byte array into Base64 notation.
|
static byte[] |
encodeBytesToBytes(byte[] source,
int len) |
public static byte[] decode(String s)
public static String encode(byte[] source)
source
- The data to convertNullPointerException
- if source array is nullpublic static byte[] encodeBytesToBytes(byte[] source, int len)
Copyright © 2017. All rights reserved.