Class Base64Util


  • public class Base64Util
    extends java.lang.Object
    Version:
    December 16, 2021
    Author:
    Javier Rojas Blum, Sergey Manoylo
    • 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)