Package io.jans.as.model.jwk
Class JSONWebKeySet
- java.lang.Object
-
- io.jans.as.model.jwk.JSONWebKeySet
-
- Direct Known Subclasses:
WebKeysConfiguration
public class JSONWebKeySet extends Object
- Version:
- February 12, 2019
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description JSONWebKeySet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JSONWebKeySet
fromJSONObject(org.json.JSONObject jwksJSONObject)
JSONWebKey
getKey(String keyId)
List<JSONWebKey>
getKeys()
void
setKeys(List<JSONWebKey> keys)
org.json.JSONObject
toJSONObject()
static String
toPrettyJson(org.json.JSONObject jsonObject)
static String
toPrettyString(org.json.JSONObject json)
String
toString()
-
-
-
Method Detail
-
getKeys
public List<JSONWebKey> getKeys()
-
setKeys
public void setKeys(List<JSONWebKey> keys)
-
getKey
public JSONWebKey getKey(String keyId)
-
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONException
- Throws:
org.json.JSONException
-
toPrettyString
public static String toPrettyString(org.json.JSONObject json)
-
toPrettyJson
public static String toPrettyJson(org.json.JSONObject jsonObject) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
fromJSONObject
public static JSONWebKeySet fromJSONObject(org.json.JSONObject jwksJSONObject) throws org.json.JSONException
- Throws:
org.json.JSONException
-
-