Class Base64Url

java.lang.Object
com.codename1.backend.Base64Url

public final class Base64Url extends Object
Base64url without padding, as JSON Web Tokens use it. Separate from any general base64 because the alphabet differs ('-' and '_' for '+' and '/') and a token encoded with the wrong one is rejected by every other implementation.
  • Method Details

    • encode

      public static String encode(byte[] data)
    • decode

      public static byte[] decode(String value)
      Null for anything that is not valid base64url, rather than a partial result.