Project

General

Profile

Download (941 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2021 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.validation.annotation;
10

    
11
import java.lang.annotation.Documented;
12
import java.lang.annotation.Retention;
13
import java.lang.annotation.Target;
14

    
15
import javax.validation.Constraint;
16
import javax.validation.Payload;
17

    
18
import eu.etaxonomy.cdm.validation.constraint.PasswordConstraintValidator;
19

    
20
/**
21
 * @author a.kohlbecker
22
 * @since Nov 12, 2021
23
 */
24
@Documented
25
@Constraint(validatedBy = PasswordConstraintValidator.class)
26
@Target({ TYPE, FIELD, ANNOTATION_TYPE })
27
@Retention(RUNTIME)
28
public  @interface ValidPassword {
29

    
30
    String message() default "Invalid Password";
31

    
32
    Class<?>[] groups() default {};
33

    
34
    Class<? extends Payload>[] payload() default {};
35

    
36
}
(18-18/20)