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

com.github.commons.utils.validation.password.Password Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
package com.github.commons.utils.validation.password;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(
        validatedBy = {PasswordImpl.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface Password {

    boolean required() default true;

    String message() default "{constraint.not.password}";

    Class[] groups() default { };

    Class[] payload() default { };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy