public class EncryptedFileKeyPairProvider
extends org.apache.sshd.common.keyprovider.FileKeyPairProvider
FileKeyPairProvider
that asks repeatedly for a passphrase for an
encrypted private key if the FilePasswordProvider
is a
RepeatingFilePasswordProvider
.Constructor and Description |
---|
EncryptedFileKeyPairProvider(List<Path> paths)
Creates a new
EncryptedFileKeyPairProvider for the given
Path s. |
Modifier and Type | Method and Description |
---|---|
protected KeyPair |
doLoadKey(String resourceKey,
InputStream inputStream,
org.apache.sshd.common.config.keys.FilePasswordProvider provider) |
doLoadKey, getPaths, loadKeys, openKeyPairResource, setFiles, setPaths
doLoadKey, getPasswordFinder, loadKeys, resetCacheMap, setPasswordFinder
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public EncryptedFileKeyPairProvider(List<Path> paths)
EncryptedFileKeyPairProvider
for the given
Path
s.paths
- to read keys fromprotected KeyPair doLoadKey(String resourceKey, InputStream inputStream, org.apache.sshd.common.config.keys.FilePasswordProvider provider) throws IOException, GeneralSecurityException
doLoadKey
in class org.apache.sshd.common.keyprovider.AbstractResourceKeyPairProvider<Path>
IOException
GeneralSecurityException
Copyright © 2018 Eclipse JGit Project. All rights reserved.