updateRecord();
}
}
private void updateRecord() {
RestClient restClient = basePresenter.getRestClient();
selectedBluePrint.setUrl(urlTextField.getText());
selectedBluePrint.setUsername(usernameTextField.getText());
selectedBluePrint.setEncryptedPassword(AES.encrypt(passwordTextField.getText(), restClient.getMasterPassword()));
HashMap<String,String> newvalues = new HashMap<>();
newvalues.put("url",selectedBluePrint.getUrl());
newvalues.put("username",selectedBluePrint.getUsername());
newvalues.put("encryptedPassword",selectedBluePrint.getEncryptedPassword());
restClient.updatePassword(selectedBluePrint.getId(),newvalues);
basePresenter.getAddEditPopOver().hide();
}