class PasswordValidationService {

    public List<String> validate(String userId, String password)
    {
        return passwordRules.stream()
                .map(rule -> rule.runValidationAndGetMessage(userId, password))
                .filter(Objects::nonNull)
                .collect(Collectors.toList());
    }

}