Package io.jans.as.model.util
Class Base64Util
- java.lang.Object
-
- io.jans.as.model.util.Base64Util
-
public class Base64Util extends Object
- Version:
- December 16, 2021
- Author:
- Javier Rojas Blum, Sergey Manoylo
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
base64urldecode(String arg)
static String
base64urldecodeToString(String arg)
static String
base64urlencode(byte[] arg)
static String
base64urlencodeUnsignedBigInt(BigInteger bigInteger)
static byte[]
bigIntegerToUnsignedByteArray(BigInteger bigInteger)
static String
bytesToHex(byte[] bytes)
static String
removePadding(String base64UrlEncoded)
static byte[]
unsignedToBytes(int[] plaintextUnsignedBytes)
-
-
-
Method Detail
-
base64urlencode
public static String base64urlencode(byte[] arg)
-
base64urldecode
public static byte[] base64urldecode(String arg) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
base64urldecodeToString
public static String base64urldecodeToString(String arg) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
base64urlencodeUnsignedBigInt
public static String base64urlencodeUnsignedBigInt(BigInteger bigInteger)
-
unsignedToBytes
public static byte[] unsignedToBytes(int[] plaintextUnsignedBytes)
-
bytesToHex
public static String bytesToHex(byte[] bytes)
-
bigIntegerToUnsignedByteArray
public static byte[] bigIntegerToUnsignedByteArray(BigInteger bigInteger)
-
-