private void configureKnownHosts(Connection c) throws IOException {
  File knownHostFile=new File(knownHostPath);
  if (knownHostFile.exists()) {
    database.addHostkeys(knownHostFile);
  }
  final List<String> algorithms=myHost.getHostKeyAlgorithms();
  c.setServerHostKeyAlgorithms(ArrayUtilRt.toStringArray(algorithms));
}

private void configureKnownHosts ( Connection c ) throws IOException { File knownHostFile = new File ( knownHostPath ) ; if ( knownHostFile . exists ( ) ) { database . addHostkeys ( knownHostFile ) ; } final List < String > algorithms = myHost . getHostKeyAlgorithms ( ) ; c . setServerHostKeyAlgorithms ( ArrayUtilRt . toStringArray ( algorithms ) ) ; }
configure known host database for connection
