public void validate()

in src/main/java/org/openvasp/client/model/NaturalPersonId.java [35:40]


    public void validate(@NonNull final VaspMessage source) {
        // whitepaper sections 7.10.1 and 7.11.1, rule 5)
        if (null == natIdCountry && (null == natIdIssuer || natIdIssuer.isEmpty())) {
            throw new VaspValidationException(source, "Either [natid_country] or [natid_issuer] or both must be present");
        }
    }