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) |
doLoadKey
getPaths, loadKeys, openKeyPairResource, setFiles, setPaths
doLoadKey, getPasswordFinder, resetCacheMap, setPasswordFinder
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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.FileKeyPairProvider
IOException
GeneralSecurityException
Copyright © 2018 Eclipse JGit Project. All rights reserved.