Class SdJwtUtils

    • Field Detail

      • mapper

        public static final com.fasterxml.jackson.databind.ObjectMapper mapper
      • arrayEltSpaced

        public static boolean arrayEltSpaced
    • Constructor Detail

      • SdJwtUtils

        public SdJwtUtils()
    • Method Detail

      • encodeNoPad

        public static String encodeNoPad​(byte[] bytes)
      • decodeNoPad

        public static byte[] decodeNoPad​(String encoded)
      • hashAndBase64EncodeNoPad

        public static String hashAndBase64EncodeNoPad​(byte[] disclosureBytes,
                                                      String hashAlg)
      • randomSalt

        public static String randomSalt()
      • randomBytes

        public static byte[] randomBytes​(int size)
      • printJsonArray

        public static String printJsonArray​(Object[] array)
                                     throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • hash

        public static byte[] hash​(byte[] bytes,
                                  String hashAlg)