* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.netconf.ssh;
import io.netty.channel.local.LocalAddress;
import java.net.InetSocketAddress;
-import org.apache.sshd.common.KeyPairProvider;
-import org.apache.sshd.server.PublickeyAuthenticator;
+import org.apache.sshd.common.keyprovider.KeyPairProvider;
+import org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator;
import org.opendaylight.netconf.auth.AuthProvider;
public final class SshProxyServerConfigurationBuilder {
private AuthProvider authenticator;
private KeyPairProvider keyPairProvider;
private int idleTimeout;
- private PublickeyAuthenticator publicKeyAuthenticator = null;
+ private PublickeyAuthenticator publickeyAuthenticator = null;
public SshProxyServerConfigurationBuilder setBindingAddress(final InetSocketAddress bindingAddress) {
this.bindingAddress = bindingAddress;
return this;
}
- public SshProxyServerConfigurationBuilder setPublickeyAuthenticator(final PublickeyAuthenticator authenticator) {
- this.publicKeyAuthenticator = authenticator;
+ public SshProxyServerConfigurationBuilder setPublickeyAuthenticator(
+ final PublickeyAuthenticator publickeyAuthenticator) {
+ this.publickeyAuthenticator = publickeyAuthenticator;
return this;
}
}
public SshProxyServerConfiguration createSshProxyServerConfiguration() {
- return new SshProxyServerConfiguration(bindingAddress, localAddress, authenticator, publicKeyAuthenticator,
+ return new SshProxyServerConfiguration(bindingAddress, localAddress, authenticator, publickeyAuthenticator,
keyPairProvider, idleTimeout);
}
public static SshProxyServerConfigurationBuilder create() {
return new SshProxyServerConfigurationBuilder();
}
-}
\ No newline at end of file
+}