public class JWKLookup extends Object
Constructor and Description |
---|
JWKLookup() |
Modifier and Type | Method and Description |
---|---|
Key |
lookup(String json,
KeyType keyType)
Lookup returns the key from the given json, under the assumption it's of the correct
keyType.
|
public Key lookup(String json, KeyType keyType) throws FailedToLoadJWKException
json
- JSON from which to attempt to generate a keykeyType
- The type of key we expect to be generated from the JSONFailedToLoadJWKException
- If there's an issue handling the loading of the JWKCopyright © 2010-2018, ForgeRock All Rights Reserved.