From 771687e2d5355ba0e491e410f98fde6b00fa9434 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Tue, 26 Jan 2016 23:28:03 -0800 Subject: Add extended server hostkey verification API This allows the SSH library to query the user of the library about which key algorithms they know about for this particular host. Otherwise when the library is upgraded or the host is upgraded, it may select and previously unknown key to authenticate against the database. Note there are two APIs added here called "removeServerHostKey" and "addServerHostKey" which currently are not called, but they are there for future support for hostkeys@openssh.com support. --- sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java') diff --git a/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java b/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java index ac65955..6e18b3e 100644 --- a/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java +++ b/sshlib/src/main/java/com/trilead/ssh2/ServerHostKeyVerifier.java @@ -26,6 +26,6 @@ public interface ServerHostKeyVerifier * connection will be closed. * @throws Exception Will be wrapped with an IOException, extended version of returning false =) */ - public boolean verifyServerHostKey(String hostname, int port, String serverHostKeyAlgorithm, byte[] serverHostKey) + boolean verifyServerHostKey(String hostname, int port, String serverHostKeyAlgorithm, byte[] serverHostKey) throws Exception; } -- cgit v1.2.3