public class CachingKeyPairProvider extends org.apache.sshd.common.keyprovider.FileKeyPairProvider implements Iterable<KeyPair>
FileKeyPairProvider
that uses an external KeyCache
.ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_DSS_CERT, SSH_ECDSA_SHA2_NISTP256_CERT, SSH_ECDSA_SHA2_NISTP384_CERT, SSH_ECDSA_SHA2_NISTP521_CERT, SSH_ED25519, SSH_ED25519_CERT, SSH_RSA, SSH_RSA_CERT
Constructor and Description |
---|
CachingKeyPairProvider(List<Path> paths,
KeyCache cache)
Creates a new
CachingKeyPairProvider using the given
KeyCache . |
Modifier and Type | Method and Description |
---|---|
Iterator<KeyPair> |
iterator() |
Iterable<KeyPair> |
loadKeys(org.apache.sshd.common.session.SessionContext session) |
doLoadKeys, getIoResource, getPaths, setPaths
doLoadKeys, doLoadKeys, getPasswordFinder, loadKeys, openKeyPairResource, resetCacheMap, setPasswordFinder
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
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
FileKeyPairProvider
.paths
- to load keys fromcache
- to use, may be null
if no external caching is desiredCopyright © 2021 Eclipse JGit Project. All rights reserved.