Package org.forgerock.json.jose.jwk
Class JWKLookup
java.lang.Object
org.forgerock.json.jose.jwk.JWKLookup
Helper class to look up and return the keys from specific JWK implementation
algorithm types.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JWKLookup
public JWKLookup()
-
-
Method Details
-
lookup
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
-