Package org.keycloak.rotation
Class HardcodedKeyLocator
java.lang.Object
org.keycloak.rotation.HardcodedKeyLocator
- All Implemented Interfaces:
 Iterable<Key>,KeyLocator
Key locator for a bunch of keys. It can be initialized with or without
 key names.
- Author:
 - Hynek Mlnařík
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.rotation.KeyLocator
KeyLocator.KeyHash - 
Constructor Summary
ConstructorsConstructorDescriptionHardcodedKeyLocator(Key key) HardcodedKeyLocator(Collection<? extends Key> keys) HardcodedKeyLocator(Map<String, ? extends Key> keys)  - 
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.keycloak.rotation.KeyLocator
getKey 
- 
Constructor Details
- 
HardcodedKeyLocator
 - 
HardcodedKeyLocator
 - 
HardcodedKeyLocator
 
 - 
 - 
Method Details
- 
getKey
Description copied from interface:KeyLocatorReturns a key with a particular ID.- Specified by:
 getKeyin interfaceKeyLocator- Parameters:
 kid- Key ID- Returns:
 - key, which should be used for verify signature on given "input"
 
 - 
getKey
Description copied from interface:KeyLocatorMethod that checks if the key passed is inside the locator.- Specified by:
 getKeyin interfaceKeyLocator- Parameters:
 key- The key to search- Returns:
 - The same key or null if it's not in the locator
 
 - 
refreshKeyCache
public void refreshKeyCache()Description copied from interface:KeyLocatorIf this key locator caches keys in any way, forces this cache cleanup and refreshing the keys.- Specified by:
 refreshKeyCachein interfaceKeyLocator
 - 
toString
 - 
iterator
 
 -