File credentialsFile = new File(directory, myCredentials.getFriendlyName() + ".enc");
try {
String algorithm = myProperties.getStringProperty("crypto.algorithm", "PBEWithMD5AndDES");
myCredentials.save(password, credentialsFile, algorithm);
loginLocalFolderPanel.clearPassword();
loginLocalFolderPanel.refreshStoredCredentialsTable();
JOptionPane.showMessageDialog(ownerFrame, "Your credentials have been stored in the file:\n" +
credentialsFile.getAbsolutePath());