]> source.dussan.org Git - jgit.git/commit
sshd: better error report when user cancels authentication 62/169262/4
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 13 Sep 2020 19:46:46 +0000 (21:46 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 26 Sep 2020 21:34:02 +0000 (23:34 +0200)
commit3459239dfc224a5164a07f2afe3ec406a357937b
tree02427180a3e53ad9f32fb106d2e4db95b272862b
parente21d7b2d3cfcf479ab4943e00c76acd3c193fc01
sshd: better error report when user cancels authentication

Use a dedicated exception class to be able to detect this case in the
SshdSessionFactory and skip the generic SshException in that case.

Change-Id: I2a0bacf47bae82f154a0f4e79efbb2af2a17d0cf
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.ssh.apache/resources/org/eclipse/jgit/internal/transport/sshd/SshdText.properties
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/AuthenticationCanceledException.java [new file with mode: 0644]
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitPasswordAuthentication.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/IdentityPasswordProvider.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSessionFactory.java