public interface KeyLocatorThis interface defines a method for obtaining a security key by ID.
KeyLocatorimplementor wants to make all its keys available for iteration, it should implement
Key> interface. The base
KeyLocatordoes not extend this interface to enable
KeyLocatorsthat do not support listing their keys.
- Hynek Mlnařík
Key getKey(String kid) throws KeyManagementExceptionReturns a key with a particular ID.
kid- Key ID
- key, which should be used for verify signature on given "input"
void refreshKeyCache()If this key locator caches keys in any way, forces this cache cleanup and refreshing the keys.