@Test public void testVerifyPassword() throws Exception { User user = new UserTestdataBuilder().build(); Assert.assertTrue(user.verifyPassword("secret")); Assert.assertFalse(user.verifyPassword("other")); }
public boolean verifyPassword(String password) { return new BasicPasswordEncryptor().checkPassword(password, this.password); }
User extends AbstractEntity { public boolean verifyPassword(String password) { return new BasicPasswordEncryptor().checkPassword(password, this.password); } }
User extends AbstractEntity { public boolean verifyPassword(String password) { return new BasicPasswordEncryptor().checkPassword(password, this.password); }  }
User extends AbstractEntity { public boolean verifyPassword(String password) { return new BasicPasswordEncryptor().checkPassword(password, this.password); }  String getFirstname(); void setFirstname(String firstname); String getSurname(); void setSurname(String surname); String getUsername(); void setUsername(String username); void setPassword(String password); boolean verifyPassword(String password); }
User extends AbstractEntity { public boolean verifyPassword(String password) { return new BasicPasswordEncryptor().checkPassword(password, this.password); }  String getFirstname(); void setFirstname(String firstname); String getSurname(); void setSurname(String surname); String getUsername(); void setUsername(String username); void setPassword(String password); boolean verifyPassword(String password);  }