static BigInteger |
JwtUtil.asBigInteger(JsonObject json,
String key,
String description) |
Extract a key value from json object that is base64-url encoded and convert it to big integer.
|
static byte[] |
JwtUtil.asByteArray(JsonObject json,
String key,
String description) |
Extract a key value from json object that is a base64-url encoded byte array.
|
static String |
JwtUtil.asString(JsonObject json,
String key,
String description) |
Extract a key value from json object that is string.
|
static Optional<BigInteger> |
JwtUtil.getBigInteger(JsonObject json,
String key,
String description) |
Extract a key value from json object that is base64-url encoded and convert it to big integer if present.
|
static Optional<byte[]> |
JwtUtil.getByteArray(JsonObject json,
String key,
String description) |
Extract a key value from json object that is a base64-url encoded byte array, if present.
|
static KeyFactory |
JwtUtil.getKeyFactory(String algorithm) |
Create a key factory for algorithm.
|
static Mac |
JwtUtil.getMac(String algorithm) |
Create a MAC for algorithm.
|
static Signature |
JwtUtil.getSignature(String signatureAlgorithm) |
Create a signature for algorithm.
|
static Optional<String> |
JwtUtil.getString(JsonObject json,
String key) |
Extract a key value from json object that is string if present.
|
static Optional<List<String>> |
JwtUtil.getStrings(JsonObject json,
String key) |
Extract a key value from json object that is a list of strings if present.
|
static SignedJwt |
SignedJwt.sign(Jwt jwt,
Jwk jwk) |
Sign a jwt using an explicit jwk.
|
static SignedJwt |
SignedJwt.sign(Jwt jwt,
JwkKeys jwks) |
Sign a jwt using a key obtained based on kid from JwkKeys .
|