Package org.forgerock.json.jose.jwk
Class JWKLookup
- java.lang.Object
-
- org.forgerock.json.jose.jwk.JWKLookup
-
public class JWKLookup extends Object
Helper class to look up and return the keys from specific JWK implementation algorithm types.
-
-
Constructor Summary
Constructors Constructor Description JWKLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Key
lookup(String json, KeyType keyType)
Lookup returns the key from the given json, under the assumption it's of the correct keyType.
-
-
-
Method Detail
-
lookup
public Key lookup(String json, KeyType keyType) throws FailedToLoadJWKException
Lookup returns the key from the given json, under the assumption it's of the correct keyType.- Parameters:
json
- JSON from which to attempt to generate a keykeyType
- The type of key we expect to be generated from the JSON- Returns:
- a valid key for verifying a JWT
- Throws:
FailedToLoadJWKException
- If there's an issue handling the loading of the JWK
-
-