private void validatePassword(String password) {
        switch (passwordPolicy) {
            case USER_INPUT_REQUIRED, USER_INPUT_OPTIONAL,
                    USER_INPUT_OR_SYSTEM_GENERATED ->
                Validator.inOptionalLengthRange(password,
                        "password",
                        passwordMinLength,
                        passwordMaxLength);
            case SYSTEM_GENERATED ->
                throw ResponseException.get(ResponseStatusCode.ILLEGAL_ARGUMENT,
                        "The user cannot update the password");
            case PROHIBITED -> throw ResponseException.get(ResponseStatusCode.ILLEGAL_ARGUMENT,
                    "The password is prohibited");
        }
    }
@implNote Though the range of the ID is [0, 1,000,000,000), we still use long as it is easy
          to extend the ID range if we need in the future, e.g.: extend to 10 digits.
turms-service/src/main/java/im/turms/service/domain/conference/service/ConferenceService.java