Class StandardSshClientProvider
java.lang.Object
org.apache.nifi.processors.standard.ssh.StandardSshClientProvider
- All Implemented Interfaces:
SshClientProvider
Standard Apache MINA SSHD Client Provider supporting configuration and authentication
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.sshd.client.SshClientbuildSshClient(org.apache.nifi.context.PropertyContext context) private org.apache.sshd.client.session.ClientSessiongetAuthenticatedClientSession(org.apache.nifi.context.PropertyContext context, Map<String, String> attributes, org.apache.sshd.client.SshClient sshClient) org.apache.sshd.client.session.ClientSessiongetClientSession(org.apache.nifi.context.PropertyContext context, Map<String, String> attributes) Get SSH Client Session connected and authenticated based on provided configurationprivate voidsetAlgorithmConfiguration(org.apache.nifi.context.PropertyContext context, org.apache.sshd.client.SshClient sshClient) private voidsetAuthentication(org.apache.nifi.context.PropertyContext context, Map<String, String> attributes, org.apache.sshd.client.SshClient sshClient) private voidsetHostKeyChecking(org.apache.nifi.context.PropertyContext context, org.apache.sshd.client.ClientBuilder clientBuilder) private voidsetProxy(org.apache.nifi.context.PropertyContext context, Map<String, String> attributes, org.apache.sshd.client.SshClient sshClient)
-
Field Details
-
HEARTBEAT_INTERVAL
-
HEARTBEAT_NO_REPLY_MAX
private static final int HEARTBEAT_NO_REPLY_MAX- See Also:
-
ACCEPT_ALL_SERVER_KEY_VERIFIER
private static final org.apache.sshd.client.keyverifier.ServerKeyVerifier ACCEPT_ALL_SERVER_KEY_VERIFIER -
COMPRESSION_FACTORIES
private static final List<org.apache.sshd.common.NamedFactory<org.apache.sshd.common.compression.Compression>> COMPRESSION_FACTORIES
-
-
Constructor Details
-
StandardSshClientProvider
public StandardSshClientProvider()
-
-
Method Details
-
getClientSession
public org.apache.sshd.client.session.ClientSession getClientSession(org.apache.nifi.context.PropertyContext context, Map<String, String> attributes) Get SSH Client Session connected and authenticated based on provided configuration- Specified by:
getClientSessionin interfaceSshClientProvider- Parameters:
context- Property Context containing configuration propertiesattributes- FlowFile attributes for property expression evaluation- Returns:
- Connected and authenticated SSH Client Session
-
getAuthenticatedClientSession
-
buildSshClient
private org.apache.sshd.client.SshClient buildSshClient(org.apache.nifi.context.PropertyContext context) -
setHostKeyChecking
private void setHostKeyChecking(org.apache.nifi.context.PropertyContext context, org.apache.sshd.client.ClientBuilder clientBuilder) -
setAlgorithmConfiguration
private void setAlgorithmConfiguration(org.apache.nifi.context.PropertyContext context, org.apache.sshd.client.SshClient sshClient) -
setProxy
-
setAuthentication
-