Add a dedicated AuthenticationFailedException 30/89130/2
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:03:53 +0000 (09:03 +0000)
commit027c3087a288cc7291cdfe265711dfaaa907bf9b
treefa6de16b224553b32159f0cc8af4936f7360b216
parent284187b8872cd3cfb39ea73024ce848bfaa344ee
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>
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]