public interface KeySource
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LoadedPublicKey> |
loadKeysFromSource()
Loads the keys provided by this source.
|
default java.util.Optional<java.util.List<LoadedPublicKey>> |
reloadKeysFromSource()
Loads the keys provided by this source again.
|
java.util.List<LoadedPublicKey> loadKeysFromSource() throws KeyLoadFailedException
KeyLoadFailedException - if loading of keys failed. If a source intentionally does not
provide keys, an empty list should be returned instead of throwing an exception.default java.util.Optional<java.util.List<LoadedPublicKey>> reloadKeysFromSource()
Optional if the source does not support reloading or
Optional if reloading failed
Implementations may not support reloading if the source knows that the keys will never
change. Callers should keep the previously loaded keys, when receiving an empty Optional here.