net.optionfactory.keycloak.validation.RequestValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optionfactory-keycloak-validation Show documentation
Show all versions of optionfactory-keycloak-validation Show documentation
optionfactory-keycloak validation
package net.optionfactory.keycloak.validation;
import java.lang.reflect.Method;
import java.util.Set;
import java.util.function.Function;
import jakarta.validation.ConstraintViolation;
import org.keycloak.provider.Provider;
public interface RequestValidator extends Provider {
public Set> validate(T o, Class>... groups);
public Set> validate(T o, Method m, Object[] parameterValues, Class>... groups);
public void enforce(T o, Function>, RuntimeException> ex, Class>... groups);
public void enforce(T o, Method m, Object[] parameterValues, Function>, RuntimeException> ex, Class>... groups);
public T unwrap(Class k);
@Override
default void close() {
}
}