public class OctJWK extends JWK
Constructor and Description |
---|
OctJWK(KeyUse use,
String alg,
String kid,
String key,
String x5u,
String x5t,
List<String> x5c)
Constructs a OctJWK.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Gets the symmetric key.
|
static OctJWK |
parse(JsonValue json)
Parses a OctJWK object from a jsonValue object.
|
static OctJWK |
parse(String json)
Parses a OctJWK object from a string json object.
|
String |
toJsonString()
Prints the JWK as a json string.
|
getAlgorithm, getKeyId, getKeyType, getUse, getX509Chain, getX509Thumbnail, getX509URL, toJsonValue
checkListValuesAreOfType, checkValueIsOfType, get, isDefined, isValueOfType, keys, put, toString
public OctJWK(KeyUse use, String alg, String kid, String key, String x5u, String x5t, List<String> x5c)
use
- the JWK usealg
- the JWK algorithmkid
- the JWK key idkey
- the symmetric keyx5u
- the x509 url for the keyx5t
- the x509 thumbnail for the keyx5c
- the x509 chain as a list of Base64 encoded stringspublic String getKey()
public static OctJWK parse(String json)
json
- string json objectpublic static OctJWK parse(JsonValue json)
json
- an JsonValue objectpublic String toJsonString()
toJsonString
in class JWK
Copyright © 2025 Open Identity Platform Community. All rights reserved.