private String generateEncryptPassword(final User user, String newPassword) { User tempUser = user.copy(); if (newPassword != null) { tempUser.setPassword(newPassword); } if (passwordProtector == null) { passwordProtector = new NonePasswordProtector(); } return passwordProtector.encrypt(tempUser); }
private String generateEncryptPassword(final User user, String newPassword) { User tempUser = user.copy(); if (newPassword != null) { tempUser.setPassword(newPassword); } if (passwordProtector == null) { passwordProtector = new NonePasswordProtector(); } return passwordProtector.encrypt(tempUser); }
private String generateEncryptPassword(final User user, String newPassword) { User tempUser = user.copy(); if (newPassword != null) { tempUser.setPassword(newPassword); } if (passwordProtector == null) { passwordProtector = new NonePasswordProtector(); } return passwordProtector.encrypt(tempUser); }
private String generateEncryptPassword(final User user, String newPassword) { User tempUser = user.copy(); if (newPassword != null) { tempUser.setPassword(newPassword); } if (passwordProtector == null) { passwordProtector = new NonePasswordProtector(); } return passwordProtector.encrypt(tempUser); }