/** * Validate whether processor configuration is valid. * * @throws com.labs64.utils.swid.exception.SwidException in case of invalid processor * configuration */ public void validate() { if (swidTag.getEntitlementRequiredIndicator() == null) { throw new SwidException("'entitlement_required_indicator' is not set"); } if (swidTag.getProductTitle() == null) { throw new SwidException("'product_title' is not set"); } if (swidTag.getProductVersion() == null) { throw new SwidException("'product_version' is not set"); } if (swidTag.getSoftwareCreator() == null) { throw new SwidException("'software_creator' is not set"); } if (swidTag.getSoftwareLicensor() == null) { throw new SwidException("'software_licensor' is not set"); } if (swidTag.getSoftwareId() == null) { throw new SwidException("'software_id' is not set"); } if (swidTag.getTagCreator() == null) { throw new SwidException("'tag_creator' is not set"); } }