Modifier and Type | Field and Description |
---|---|
protected static String |
ALG
The Algorithm key.
|
protected static String |
KID
The KeyID key.
|
protected static String |
KTY
The KeyType key.
|
protected static String |
USE
The KeyUse key.
|
protected static String |
X5C
The X509 chain key.
|
protected static String |
X5T
The X509 thumbnail key.
|
protected static String |
X5U
The X509 URL key.
|
Modifier | Constructor and Description |
---|---|
protected |
JWK(KeyType kty,
KeyUse use,
String alg,
String kid)
Creates a JWK given the basic parameters.
|
protected |
JWK(KeyType kty,
KeyUse use,
String alg,
String kid,
String x5u,
String x5t,
List<String> x5c)
Creates a JWK given the basic parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Gets the alg parameter of the JWK.
|
String |
getKeyId()
Gets the kid parameter of the JWK.
|
KeyType |
getKeyType()
Gets the kty parameter of the JWK.
|
KeyUse |
getUse()
Gets the use parameter of the JWK.
|
List<String> |
getX509Chain()
Gets a List of X509 chain certs.
|
String |
getX509Thumbnail()
Gets the X509 thumbnail.
|
String |
getX509URL()
Gets the X509 URL.
|
static JWK |
parse(JsonValue jwk)
Parses a JsonValue into the proper JWK type.
|
static JWK |
parse(String json)
Parses a String into the proper JWK type.
|
String |
toJsonString()
Prints the JWK Object as a json string.
|
protected static JsonValue |
toJsonValue(String json)
Converts a String into a JsonValue.
|
checkListValuesAreOfType, checkValueIsOfType, get, isDefined, isValueOfType, keys, put, toString
protected static final String KTY
protected static final String USE
protected static final String ALG
protected static final String KID
protected static final String X5U
protected static final String X5T
protected static final String X5C
protected JWK(KeyType kty, KeyUse use, String alg, String kid)
kty
- the JWK key typeuse
- the JWK usealg
- the JWK algorithmkid
- the JWK key idprotected JWK(KeyType kty, KeyUse use, String alg, String kid, String x5u, String x5t, List<String> x5c)
kty
- the JWK key typeuse
- the JWK usealg
- the JWK algorithmkid
- the JWK key idx5u
- the x509 url for the keyx5t
- the x509 thumbnail for the keyx5c
- the x509 chain as a list of Base64 encoded stringspublic KeyType getKeyType()
public KeyUse getUse()
public String getAlgorithm()
public String getKeyId()
public String toJsonString()
public static JWK parse(String json)
json
- The json String.JsonException
- If there is a problem parsing the json String.public static JWK parse(JsonValue jwk)
jwk
- The JsonValue Object.JsonException
- If there is a problem parsing the json String.protected static JsonValue toJsonValue(String json)
json
- The json String.JsonException
- If there is a problem parsing the json String.public String getX509URL()
public String getX509Thumbnail()
Copyright © 2025 Open Identity Platform Community. All rights reserved.