@Test public void testGenerate() throws JSchException { Map<String, String> pair = generate(); assertThat(pair.get("public"), containsString("ssh-rsa ")); assertThat(pair.get("private"), containsString("-----BEGIN RSA PRIVATE KEY-----\n")); }
public static Map<String, String> generate() throws JSchException { return generate(null); }
KeyPair { public static Map<String, String> generate() throws JSchException { return generate(null); } }
KeyPair { public static Map<String, String> generate() throws JSchException { return generate(null); }  }
KeyPair { public static Map<String, String> generate() throws JSchException { return generate(null); }  static Map<String, String> generate(); static Map<String,String> generate(String passPhrase); static Map<String, File> generateTemporaryFiles(); static Map<String, File> generateTemporaryFiles(String passPhrase); static void setPermissionsTo600(File f); static boolean sameKeyPair(File privateKeyFile, File publicKeyFile); }
KeyPair { public static Map<String, String> generate() throws JSchException { return generate(null); }  static Map<String, String> generate(); static Map<String,String> generate(String passPhrase); static Map<String, File> generateTemporaryFiles(); static Map<String, File> generateTemporaryFiles(String passPhrase); static void setPermissionsTo600(File f); static boolean sameKeyPair(File privateKeyFile, File publicKeyFile);  }