public class Base64Coder extends Object
Modifier and Type | Method and Description |
---|---|
static String |
decode(byte[] encoded) |
static String |
decode(String encoded)
Decodes the given base64 encoded string.
|
static String |
encode(byte[] unencoded)
Encodes the given byte array to a base64 encoded String
|
static String |
encode(String unencoded)
Encodes the given string to a base64 encoded string.
|
public static String encode(byte[] unencoded)
unencoded
- the array of unencoded bytes that shall get encodedpublic static String encode(String unencoded)
null
if the given string is null
.unencoded
- public static String decode(byte[] encoded)
Copyright © 2017 JBoss by Red Hat. All rights reserved.