Package org.basex.util
Class Base64
- java.lang.Object
-
- org.basex.util.Base64
-
public final class Base64 extends Object
This class provides functions for encoding and decoding Base64 strings.- Author:
- BaseX Team 2005-23, BSD License, Christian Gruen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
decode(byte[] token)
Decodes the specified token.static String
decode(String token)
Decodes the specified string.static byte[]
encode(byte[] token)
Encodes the specified token.static String
encode(String token)
Encodes the specified string.
-
-
-
Method Detail
-
encode
public static String encode(String token)
Encodes the specified string.- Parameters:
token
- value to be encoded- Returns:
- resulting token
-
encode
public static byte[] encode(byte[] token)
Encodes the specified token.- Parameters:
token
- value to be encoded- Returns:
- resulting token
-
decode
public static String decode(String token)
Decodes the specified string.- Parameters:
token
- value to be decoded- Returns:
- resulting token
-
decode
public static byte[] decode(byte[] token)
Decodes the specified token.- Parameters:
token
- value to be decoded- Returns:
- resulting token
-
-