Package io.jans.as.model.util
Class Base64Util
- java.lang.Object
-
- io.jans.as.model.util.Base64Util
-
public class Base64Util extends java.lang.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(java.lang.String arg)
static java.lang.String
base64urldecodeToString(java.lang.String arg)
static java.lang.String
base64urlencode(byte[] arg)
static java.lang.String
base64urlencodeUnsignedBigInt(java.math.BigInteger bigInteger)
static byte[]
bigIntegerToUnsignedByteArray(java.math.BigInteger bigInteger)
static java.lang.String
bytesToHex(byte[] bytes)
static java.lang.String
removePadding(java.lang.String base64UrlEncoded)
static byte[]
unsignedToBytes(int[] plaintextUnsignedBytes)
-
-
-
Method Detail
-
base64urlencode
public static java.lang.String base64urlencode(byte[] arg)
-
base64urldecode
public static byte[] base64urldecode(java.lang.String arg) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
base64urldecodeToString
public static java.lang.String base64urldecodeToString(java.lang.String arg) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
removePadding
public static java.lang.String removePadding(java.lang.String base64UrlEncoded)
-
base64urlencodeUnsignedBigInt
public static java.lang.String base64urlencodeUnsignedBigInt(java.math.BigInteger bigInteger)
-
unsignedToBytes
public static byte[] unsignedToBytes(int[] plaintextUnsignedBytes)
-
bytesToHex
public static java.lang.String bytesToHex(byte[] bytes)
-
bigIntegerToUnsignedByteArray
public static byte[] bigIntegerToUnsignedByteArray(java.math.BigInteger bigInteger)
-
-