Package org.tsugi.lti13
Class LTI13KeySetUtil
- java.lang.Object
-
- org.tsugi.lti13.LTI13KeySetUtil
-
public class LTI13KeySetUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description LTI13KeySetUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanaddPublicKey(Map<String,RSAPublicKey> keys, String publicSerialized)static RSAPublicKeygetKeyFromKeySet(String kid, com.nimbusds.jose.jwk.JWKSet localKeys)static RSAPublicKeygetKeyFromKeySet(String kid, String url)static RSAPublicKeygetKeyFromKeySetString(String kid, String json)static com.nimbusds.jose.jwk.JWKSetgetKeySetFromUrl(String url)static StringgetKeySetJSON(String kid, RSAPublicKey key)static StringgetKeySetJSON(RSAPublicKey key)static StringgetKeySetJSON(Map<String,RSAPublicKey> keys)static StringgetPublicKID(Key key)
-
-
-
Method Detail
-
addPublicKey
public static boolean addPublicKey(Map<String,RSAPublicKey> keys, String publicSerialized)
-
getKeySetJSON
public static String getKeySetJSON(Map<String,RSAPublicKey> keys) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
getKeySetJSON
public static String getKeySetJSON(String kid, RSAPublicKey key) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
getKeySetJSON
public static String getKeySetJSON(RSAPublicKey key) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
getKeySetFromUrl
public static com.nimbusds.jose.jwk.JWKSet getKeySetFromUrl(String url) throws ParseException, com.nimbusds.jose.JOSEException, MalformedURLException, IOException
- Throws:
ParseExceptioncom.nimbusds.jose.JOSEExceptionMalformedURLExceptionIOException
-
getKeyFromKeySet
public static RSAPublicKey getKeyFromKeySet(String kid, com.nimbusds.jose.jwk.JWKSet localKeys) throws ParseException, com.nimbusds.jose.JOSEException, MalformedURLException, IOException
- Throws:
ParseExceptioncom.nimbusds.jose.JOSEExceptionMalformedURLExceptionIOException
-
getKeyFromKeySet
public static RSAPublicKey getKeyFromKeySet(String kid, String url) throws ParseException, com.nimbusds.jose.JOSEException, MalformedURLException, IOException
- Throws:
ParseExceptioncom.nimbusds.jose.JOSEExceptionMalformedURLExceptionIOException
-
getKeyFromKeySetString
public static RSAPublicKey getKeyFromKeySetString(String kid, String json) throws ParseException, com.nimbusds.jose.JOSEException
- Throws:
ParseExceptioncom.nimbusds.jose.JOSEException
-
-