Class JWKUtils

java.lang.Object
io.fusionauth.jwks.JWKUtils

public class JWKUtils extends Object
Author:
Daniel DeGroff
  • Constructor Details

    • JWKUtils

      public JWKUtils()
  • Method Details

    • base64DecodeUint

      public static BigInteger base64DecodeUint(String encoded)
      Decode an un-signed integer from a String to a BigInteger object.
      Parameters:
      encoded - the encoded integer
      Returns:
      a BigInteger representation of the encoded value.
    • base64EncodeUint

      public static String base64EncodeUint(BigInteger value)
      Encode an un-signed integer from a BigInteger to a String.
      Parameters:
      value - the integer value
      Returns:
      a Base64 encoded value of the un-signed integer.
    • base64EncodeUint

      public static String base64EncodeUint(BigInteger value, int minimumLength)
      Encode an un-signed integer from a BigInteger to a String.
      Parameters:
      value - the integer value
      minimumLength - the minimum length of the returned value. A value of -1 indicates there is no minimum.
      Returns:
      a Base64 encoded value of the un-signed integer.