@Test void hashPasswordShouldSha1WhenRandomString() { Assertions.assertThat(JPAUser.hashPassword(RANDOM_PASSWORD, "random")).isEqualTo("05dbbaa7b4bcae245f14d19ae58ef1b80adf3363"); }
@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();  }