HomeSort by relevance Sort by last modified time
    Searched refs:KnownHosts (Results 1 - 4 of 4) sorted by null

  /external/ganymed-ssh2/examples/
SimpleVerifier.java 5 import ch.ethz.ssh2.KnownHosts;
10 KnownHosts database;
16 public SimpleVerifier(KnownHosts database)
31 case KnownHosts.HOSTKEY_IS_OK:
35 case KnownHosts.HOSTKEY_IS_NEW:
41 // To save it in a known hosts file, also call "KnownHosts.addHostkeyToFile(...)"
46 case KnownHosts.HOSTKEY_HAS_CHANGED:
UsingKnownHosts.java 12 import ch.ethz.ssh2.KnownHosts;
18 static KnownHosts database = new KnownHosts();
26 File knownHosts = new File("~/.ssh/known_hosts");
32 if (knownHosts.exists())
33 database.addHostkeys(knownHosts);
SwingShell.java 32 import ch.ethz.ssh2.KnownHosts;
67 KnownHosts database = new KnownHosts();
389 case KnownHosts.HOSTKEY_IS_OK:
392 case KnownHosts.HOSTKEY_IS_NEW:
396 case KnownHosts.HOSTKEY_HAS_CHANGED:
406 String hexFingerprint = KnownHosts.createHexFingerprint(serverHostKeyAlgorithm, serverHostKey);
407 String bubblebabbleFingerprint = KnownHosts.createBubblebabbleFingerprint(serverHostKeyAlgorithm,
420 String hashedHostname = KnownHosts.createHashedHostname(hostname);
430 KnownHosts.addHostkeyToFile(new File(knownHostPath), new String[] { hashedHostname }
    [all...]
  /external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
KnownHosts.java 34 * The <code>KnownHosts</code> class is a handy tool to verify received server hostkeys
43 * <code>KnownHosts</code> for your whole application.
46 * @version $Id: KnownHosts.java 37 2011-05-28 22:31:46Z dkocher@sudo.ch $
49 public class KnownHosts
67 private final LinkedList<KnownHostsEntry> publicKeys = new LinkedList<KnownHosts.KnownHostsEntry>();
69 public KnownHosts()
73 public KnownHosts(char[] knownHostsData) throws IOException
78 public KnownHosts(String knownHosts) throws IOException
80 initialize(new File(knownHosts));
    [all...]

Completed in 131 milliseconds