ch.ethz.ssh2
Interface ServerHostKeyVerifier
- public interface ServerHostKeyVerifier
A callback interface used to implement a client specific method of checking
server host keys.
- Version:
- $Id: ServerHostKeyVerifier.java,v 1.1 2005/05/23 09:03:29
cplattne Exp $
- Author:
- Christian Plattner, plattner@inf.ethz.ch
Method Summary |
boolean |
verifyServerHostKey(java.lang.String hostname,
int port,
java.lang.String serverHostKeyAlgorithm,
byte[] serverHostKey)
The actual callback procedure, it will be called by the key exchange code
on EVERY key exchange - this can happen several times during the lifetime
of a connection. |
verifyServerHostKey
public boolean verifyServerHostKey(java.lang.String hostname,
int port,
java.lang.String serverHostKeyAlgorithm,
byte[] serverHostKey)
- The actual callback procedure, it will be called by the key exchange code
on EVERY key exchange - this can happen several times during the lifetime
of a connection.
Note: SSH2 servers are allowed to change their hostkey at ANY time.
- Parameters:
hostname
- port
- serverHostKeyAlgorithm
- serverHostKey
-
- Returns:
- if the client wants to accept the server's host key - if not, the
connection will be closed.