Add a dedicated AuthenticationFailedException 63/89163/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:04 +0000 (09:04 +0000)
commit799030a596a24c4cce48276ec3657921fbbf5f7f
tree20e70c2324d8ba81710df1c6da74122d0c05ac75
parent6552531d20a6ab5d0cd3f7c9102f00421016e159
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]