The RuntimeException is thrown in the Base64Url class during decoding, e.g.: java.lang.RuntimeException: java.lang.IllegalArgumentException: Base64-encoded string must have at least four characters, ...