class DefaultAuthenticationService implements AuthenticationService {

    @Override
    public boolean userPasswordCheck(final String username, final String password) {
        final UserEntity userEntity = userService.findByName(username);

        return userEntity != null && userService.matches(password, userEntity.getPassword());
    }

    @Autowired public  DefaultAuthenticationService(final UserService userService, final DateTimeService dateTimeService);

}