Interface EntityValidator<T>

  • Type Parameters:
    T - The security entity type.
    All Known Implementing Classes:
    GroupValidator, RoleValidator, UserValidator

    public interface EntityValidator<T>

    The validator contract for a given security entity of type T.

    Compatible with JSR303 Bean Validation for future integration with other validation frameworks.

    Since:
    0.8.0
    • Method Detail

      • validate

        Set<javax.validation.ConstraintViolation<T>> validate​(T entity)

        Validates the given entity.

        Parameters:
        entity - The entity instance to validate.
        Returns:
        The validation constraints collection produced.