@Override public Void call() throws IOException, GeneralSecurityException, PasswordException { changePassword(oldPassword, newPassword, confirmNewPassword); return null; } });
/** * Reencrypts all encrypted files with a new password * @param oldPassword * @param newPassword * @param confirmNewPassword * @throws IOException * @throws GeneralSecurityException * @throws PasswordException if the old password is incorrect or two new passwords don't match */ public void changePassword(byte[] oldPassword, byte[] newPassword, byte[] confirmNewPassword) throws IOException, GeneralSecurityException, PasswordException { changePassword(oldPassword, newPassword, confirmNewPassword, new StatusListener<ChangePasswordStatus>() { public void updateStatus(ChangePasswordStatus status, String... args) {} // Do nothing }); }