Exemple #1
0
 public static void migratePrivateKeys() {
   File oldDir = FsUtils.getDir("ssh");
   if (oldDir.exists()) {
     try {
       FileUtils.copyDirectory(oldDir, getPrivateKeyFolder());
       FileUtils.deleteDirectory(oldDir);
     } catch (IOException ex) {
       ex.printStackTrace();
     }
   }
 }
Exemple #2
0
 public static File getPublicKeyFolder() {
   return FsUtils.getInternalDir("sshpub");
 }
Exemple #3
0
 public static File getPrivateKeyFolder() {
   return FsUtils.getInternalDir("ssh");
 }