public class CachingKeyPairProvider extends EncryptedFileKeyPairProvider implements Iterable<KeyPair>
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) |
Iterator<KeyPair> |
iterator() |
Iterable<KeyPair> |
loadKeys() |
doLoadKey
getPaths, openKeyPairResource, setFiles, setPaths
doLoadKey, getPasswordFinder, loadKeys, resetCacheMap, setPasswordFinder
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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 desiredpublic Iterable<KeyPair> loadKeys()
loadKeys
in interface org.apache.sshd.common.keyprovider.KeyIdentityProvider
loadKeys
in class org.apache.sshd.common.keyprovider.FileKeyPairProvider
protected KeyPair doLoadKey(Path resource) throws IOException, GeneralSecurityException
doLoadKey
in class org.apache.sshd.common.keyprovider.FileKeyPairProvider
IOException
GeneralSecurityException
Copyright © 2019 Eclipse JGit Project. All rights reserved.