313314315316317318319320321322
if (!store.hasEntry(filename)) { generateKey(username, keyType, bitLength, passphrase); } SshPrivateKeyFile f = SshPrivateKeyFile.parse(store.getEntryInputStream(filename)); return f.toPrivateKey(passphrase); }