Add a dedicated AuthenticationFailedException 64/89164/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 19 Apr 2020 11:18:47 +0000 (13:18 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 21 Apr 2020 09:04:14 +0000 (09:04 +0000)
commit2b7482c4617e4051c266dd1585ca819b51cfa5de
tree177f7f2919058a8a4b0f14be9105eb8e0cdba5a3
parentd442f2c307219c180c49674412bcd09c20d30449
Add a dedicated AuthenticationFailedException

When we have a failure to authenticate, we want the client to be
able to discern this state.

Add a dedicated exception and report it instead of straight
exception from SSH (which may be anything) or a generic ISE.

JIRA: NETCONF-665
Change-Id: I1f113d5aaff6bf4482d9725adaa06b5d2479304c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 027c3087a288cc7291cdfe265711dfaaa907bf9b)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AuthenticationFailedException.java [new file with mode: 0644]