@Test public void test_isPasswordValid_valid() { boolean valid = adminDetailsServiceToTest.isPasswordValid(USERNAME, PW_PLAIN); Assert.assertTrue(valid); }
@Override public boolean isPasswordValid(String username, String password) { UserDetails details = loadUserByUsername(username); return BCrypt.checkpw(password, details.getPassword()); }
AdminUserDetailsService implements IAdminUserDetailsService { @Override public boolean isPasswordValid(String username, String password) { UserDetails details = loadUserByUsername(username); return BCrypt.checkpw(password, details.getPassword()); } }
AdminUserDetailsService implements IAdminUserDetailsService { @Override public boolean isPasswordValid(String username, String password) { UserDetails details = loadUserByUsername(username); return BCrypt.checkpw(password, details.getPassword()); }  }
AdminUserDetailsService implements IAdminUserDetailsService { @Override public boolean isPasswordValid(String username, String password) { UserDetails details = loadUserByUsername(username); return BCrypt.checkpw(password, details.getPassword()); }  @PostConstruct void init(); @Override UserDetails loadUserByUsername(String arg0); @Override List<UserDetails> getAllAdmins(); @Override boolean changePassword(String username, String password); @Override boolean isPasswordValid(String username, String password); }
AdminUserDetailsService implements IAdminUserDetailsService { @Override public boolean isPasswordValid(String username, String password) { UserDetails details = loadUserByUsername(username); return BCrypt.checkpw(password, details.getPassword()); }  @PostConstruct void init(); @Override UserDetails loadUserByUsername(String arg0); @Override List<UserDetails> getAllAdmins(); @Override boolean changePassword(String username, String password); @Override boolean isPasswordValid(String username, String password);  }