X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-netty-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fnettyutil%2Fhandler%2Fssh%2Fauthentication%2FAuthenticationHandler.java;h=0548b1d371a415569dffc1826c02fae4700df45d;hp=b22b792d52980227d2aa85da39436535a19097b2;hb=42fba0edd6478327be64b03747e0d839d11b3363;hpb=c3108b4e80ec9f6ee6c8cf96df3009bb91dc8bc0 diff --git a/opendaylight/netconf/netconf-netty-util/src/main/java/org/opendaylight/controller/netconf/nettyutil/handler/ssh/authentication/AuthenticationHandler.java b/opendaylight/netconf/netconf-netty-util/src/main/java/org/opendaylight/controller/netconf/nettyutil/handler/ssh/authentication/AuthenticationHandler.java index b22b792d52..0548b1d371 100644 --- a/opendaylight/netconf/netconf-netty-util/src/main/java/org/opendaylight/controller/netconf/nettyutil/handler/ssh/authentication/AuthenticationHandler.java +++ b/opendaylight/netconf/netconf-netty-util/src/main/java/org/opendaylight/controller/netconf/nettyutil/handler/ssh/authentication/AuthenticationHandler.java @@ -8,13 +8,15 @@ package org.opendaylight.controller.netconf.nettyutil.handler.ssh.authentication; -import ch.ethz.ssh2.Connection; - import java.io.IOException; +import org.apache.sshd.ClientSession; /** * Class providing authentication facility to SSH handler. */ public abstract class AuthenticationHandler { - public abstract void authenticate(Connection connection) throws IOException; + + public abstract String getUsername(); + + public abstract org.apache.sshd.client.future.AuthFuture authenticate(final ClientSession session) throws IOException; }