com.github.menglim.sutils.annotations.xssprotection.XSSProtection Maven / Gradle / Ivy
package com.github.menglim.sutils.annotations.xssprotection;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
@Documented
@Constraint(validatedBy = XSSProtectionValidator.class)
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface XSSProtection {
String locale() default "";
String message() default "Invalid value";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
}