de.frachtwerk.essencium.backend.model.validation.ValidEmailValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of essencium-backend Show documentation
Show all versions of essencium-backend Show documentation
Essencium Backend is a software library built on top of Spring Boot that allows developers to quickly
get started on new software projects. Essencium provides, for example, a fully implemented role-rights concept
as well as various field-tested solutions for access management and authentication.
The newest version!
package de.frachtwerk.essencium.backend.model.validation;
import de.frachtwerk.essencium.backend.util.StringUtils;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
public class ValidEmailValidator implements ConstraintValidator {
@Override
public void initialize(ValidEmail constraintAnnotation) {
ConstraintValidator.super.initialize(constraintAnnotation);
}
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
return StringUtils.isValidEmailAddress(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy