public interface KeyCache
KeyPairs.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Removes all
KeyPair from this cache and destroys their private
keys. |
java.security.KeyPair |
get(java.nio.file.Path path,
java.util.function.Function<? super java.nio.file.Path,? extends java.security.KeyPair> loader)
Obtains a
KeyPair from the cache. |
java.security.KeyPair get(java.nio.file.Path path,
java.util.function.Function<? super java.nio.file.Path,? extends java.security.KeyPair> loader)
KeyPair from the cache. Implementations must be
thread-safe.path - of the keyloader - to load the key if it isn't present in the cache yetKeyPair, or null if not present and could not
be loadedvoid close()
KeyPair from this cache and destroys their private
keys. This cache instance must not be used anymore thereafter.