Package org.eclipse.jgit.transport.sshd
Class JGitKeyCache
java.lang.Object
org.eclipse.jgit.transport.sshd.JGitKeyCache
- All Implemented Interfaces:
KeyCache
A simple
KeyCache
. JGit uses one such cache in its
SshdSessionFactory
to avoid loading keys multiple times.- Since:
- 5.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cache
-
-
Constructor Details
-
JGitKeyCache
public JGitKeyCache()
-
-
Method Details
-
get
Description copied from interface:KeyCache
Obtains aKeyPair
from the cache. Implementations must be thread-safe. -
close
public void close()Description copied from interface:KeyCache
Removes allKeyPair
from this cache and destroys their private keys. This cache instance must not be used anymore thereafter.
-