public class CachingKeyPairProvider extends EncryptedFileKeyPairProvider
EncryptedFileKeyPairProvider that uses an external
KeyCache.| Constructor and Description |
|---|
CachingKeyPairProvider(List<Path> paths,
KeyCache cache)
Creates a new
CachingKeyPairProvider using the given
KeyCache. |
| Modifier and Type | Method and Description |
|---|---|
protected KeyPair |
doLoadKey(Path resource) |
protected Iterable<KeyPair> |
loadKeys(Collection<? extends Path> resources) |
doLoadKeygetPaths, loadKeys, openKeyPairResource, setFiles, setPathsdoLoadKey, getPasswordFinder, resetCacheMap, setPasswordFindergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic CachingKeyPairProvider(List<Path> paths, KeyCache cache)
CachingKeyPairProvider using the given
KeyCache. If the cache is null, this is a simple
EncryptedFileKeyPairProvider.paths - to load keys fromcache - to use, may be null if no external caching is desiredprotected Iterable<KeyPair> loadKeys(Collection<? extends Path> resources)
loadKeys in class org.apache.sshd.common.keyprovider.AbstractResourceKeyPairProvider<Path>protected KeyPair doLoadKey(Path resource) throws IOException, GeneralSecurityException
doLoadKey in class org.apache.sshd.common.keyprovider.FileKeyPairProviderIOExceptionGeneralSecurityExceptionCopyright © 2018 Eclipse JGit Project. All rights reserved.