public class StandardSSHClientProvider extends Object implements SSHClientProvider
| Modifier and Type | Field and Description |
|---|---|
private static String |
ADDRESS_FORMAT |
private static SocketFactoryProvider |
SOCKET_FACTORY_PROVIDER |
private static SSHConfigProvider |
SSH_CONFIG_PROVIDER |
private static List<Proxy.Type> |
SUPPORTED_PROXY_TYPES |
| Constructor and Description |
|---|
StandardSSHClientProvider() |
| Modifier and Type | Method and Description |
|---|---|
private void |
closeClient(net.schmizz.sshj.SSHClient client) |
net.schmizz.sshj.SSHClient |
getClient(PropertyContext context,
Map<String,String> attributes)
Get configured and authenticated SSH Client based on context properties
|
private net.schmizz.sshj.userauth.keyprovider.KeyFormat |
getKeyFormat(String privateKeyLocation) |
private net.schmizz.sshj.userauth.keyprovider.KeyProvider |
getKeyProvider(net.schmizz.sshj.SSHClient client,
String privateKeyLocation,
String privateKeyPassphrase) |
private List<net.schmizz.sshj.userauth.method.AuthMethod> |
getPasswordAuthMethods(PropertyContext context,
Map<String,String> attributes) |
private net.schmizz.sshj.userauth.password.PasswordFinder |
getPasswordFinder(String password) |
private List<net.schmizz.sshj.userauth.method.AuthMethod> |
getPublicKeyAuthMethods(net.schmizz.sshj.SSHClient client,
PropertyContext context,
Map<String,String> attributes) |
private void |
setClientProperties(net.schmizz.sshj.SSHClient client,
PropertyContext context) |
private static final SSHConfigProvider SSH_CONFIG_PROVIDER
private static final SocketFactoryProvider SOCKET_FACTORY_PROVIDER
private static final List<Proxy.Type> SUPPORTED_PROXY_TYPES
private static final String ADDRESS_FORMAT
public net.schmizz.sshj.SSHClient getClient(PropertyContext context, Map<String,String> attributes)
getClient in interface SSHClientProvidercontext - Property Contextattributes - FlowFile attributes for property expression evaluationprivate void closeClient(net.schmizz.sshj.SSHClient client)
private void setClientProperties(net.schmizz.sshj.SSHClient client,
PropertyContext context)
private List<net.schmizz.sshj.userauth.method.AuthMethod> getPasswordAuthMethods(PropertyContext context, Map<String,String> attributes)
private List<net.schmizz.sshj.userauth.method.AuthMethod> getPublicKeyAuthMethods(net.schmizz.sshj.SSHClient client, PropertyContext context, Map<String,String> attributes)
private net.schmizz.sshj.userauth.keyprovider.KeyProvider getKeyProvider(net.schmizz.sshj.SSHClient client,
String privateKeyLocation,
String privateKeyPassphrase)
private net.schmizz.sshj.userauth.keyprovider.KeyFormat getKeyFormat(String privateKeyLocation)
private net.schmizz.sshj.userauth.password.PasswordFinder getPasswordFinder(String password)
Copyright © 2023 Apache NiFi Project. All rights reserved.