@Test public void shouldUpdateUserPasswordWithNewPassword() throws Exception { sut.changePassword(user, NEW_PASSWORD); assertThat(user.getPassword(), is(CRYPT_NEW_PASSWORD)); }
@Override public void changePassword(User user, String password) { user.setPassword(DigestUtils.shaHex(password)); }
AuthenticationManagerDaoImpl extends AuthenticationManager { @Override public void changePassword(User user, String password) { user.setPassword(DigestUtils.shaHex(password)); } }
AuthenticationManagerDaoImpl extends AuthenticationManager { @Override public void changePassword(User user, String password) { user.setPassword(DigestUtils.shaHex(password)); } AuthenticationManagerDaoImpl(ConfigurationUtil cfg, IUserRolesService userRolesService); }
AuthenticationManagerDaoImpl extends AuthenticationManager { @Override public void changePassword(User user, String password) { user.setPassword(DigestUtils.shaHex(password)); } AuthenticationManagerDaoImpl(ConfigurationUtil cfg, IUserRolesService userRolesService); static AuthenticationManager getDefault(); boolean checkPassword(User user, String passwd); @Override void changePassword(User user, String password); String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); String resetPasswordExternal(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); }
AuthenticationManagerDaoImpl extends AuthenticationManager { @Override public void changePassword(User user, String password) { user.setPassword(DigestUtils.shaHex(password)); } AuthenticationManagerDaoImpl(ConfigurationUtil cfg, IUserRolesService userRolesService); static AuthenticationManager getDefault(); boolean checkPassword(User user, String passwd); @Override void changePassword(User user, String password); String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); String resetPasswordExternal(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4);  }