use of org.gluu.oxtrust.model.scim2.util.ResourceValidator in project oxTrust by GluuFederation.
the class BaseScimWebService method executeValidation.
protected void executeValidation(BaseScimResource resource, boolean skipRequired) throws SCIMException {
ResourceValidator rv = new ResourceValidator(resource, extService.getResourceExtensions(resource.getClass()));
if (!skipRequired) {
rv.validateRequiredAttributes();
rv.validateSchemasAttribute();
}
rv.validateValidableAttributes();
// By section 7 of RFC 7643, we are not forced to constrain attribute values when they have a list of canonical values associated
// rv.validateCanonicalizedAttributes();
rv.validateExtendedAttributes();
}
Aggregations