@Test void hashPasswordShouldHashWhenMD5() { Assertions.assertThat(JPAUser.hashPassword(RANDOM_PASSWORD, "MD5")).isEqualTo("702000e50c9fd3755b8fc20ecb07d1ac"); }
@VisibleForTesting static String hashPassword(String password, String alg) { return chooseHashFunction(alg).apply(password); }
JPAUser implements User { @VisibleForTesting static String hashPassword(String password, String alg) { return chooseHashFunction(alg).apply(password); } }
JPAUser implements User { @VisibleForTesting static String hashPassword(String password, String alg) { return chooseHashFunction(alg).apply(password); } protected  JPAUser();  JPAUser(String userName, String password, String alg); }
JPAUser implements User { @VisibleForTesting static String hashPassword(String password, String alg) { return chooseHashFunction(alg).apply(password); } protected  JPAUser();  JPAUser(String userName, String password, String alg); @Override Username getUserName(); @Override boolean setPassword(String newPass); @Override boolean verifyPassword(String pass); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
JPAUser implements User { @VisibleForTesting static String hashPassword(String password, String alg) { return chooseHashFunction(alg).apply(password); } protected  JPAUser();  JPAUser(String userName, String password, String alg); @Override Username getUserName(); @Override boolean setPassword(String newPass); @Override boolean verifyPassword(String pass); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }