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 Stringstatic Stringbase64urlencode(byte[] arg) static Stringbase64urlencode(String string) static Stringbase64urlencodeUnsignedBigInt(BigInteger bigInteger) static byte[]bigIntegerToUnsignedByteArray(BigInteger bigInteger) static StringbytesToHex(byte[] bytes) static StringremovePadding(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
-