All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.optionfactory.keycloak.validation.RequestValidator Maven / Gradle / Ivy

There is a newer version: 6.16
Show newest version
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() {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy