Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class Base64Url
- Object
- Base64Url
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.
Methods
public static String encode(byte[] data) | |
public static byte[] decode(String value) | Null for anything that is not valid base64url, rather than a partial result. |
Inherited methods
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.