Package io.jans.as.model.util
Class Base64Util
java.lang.Object
io.jans.as.model.util.Base64Util
- Version:
- December 16, 2021
- Author:
- Javier Rojas Blum, Sergey Manoylo
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
base64urldecode
(String arg) static String
static String
base64urlencode
(byte[] arg) static String
base64urlencode
(String string) 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 Details
-
base64urlencode
-
base64urlencode
-
base64urldecode
- Throws:
IllegalArgumentException
-
base64urldecodeToString
- Throws:
IllegalArgumentException
-
removePadding
-
base64urlencodeUnsignedBigInt
-
unsignedToBytes
public static byte[] unsignedToBytes(int[] plaintextUnsignedBytes) -
bytesToHex
-
bigIntegerToUnsignedByteArray
-