Project

General

Profile

Download (1.15 KB) 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 static java.lang.annotation.ElementType.ANNOTATION_TYPE;
12
import static java.lang.annotation.ElementType.FIELD;
13
import static java.lang.annotation.ElementType.TYPE;
14
import static java.lang.annotation.RetentionPolicy.RUNTIME;
15

    
16
import java.lang.annotation.Documented;
17
import java.lang.annotation.Retention;
18
import java.lang.annotation.Target;
19

    
20
import javax.validation.Constraint;
21
import javax.validation.Payload;
22

    
23
import eu.etaxonomy.cdm.validation.constraint.PasswordConstraintValidator;
24

    
25
/**
26
 * @author a.kohlbecker
27
 * @since Nov 12, 2021
28
 */
29
@Documented
30
@Constraint(validatedBy = PasswordConstraintValidator.class)
31
@Target({ TYPE, FIELD, ANNOTATION_TYPE })
32
@Retention(RUNTIME)
33
public  @interface ValidPassword {
34

    
35
    String message() default "Invalid Password";
36

    
37
    Class<?>[] groups() default {};
38

    
39
    Class<? extends Payload>[] payload() default {};
40

    
41
}
(18-18/20)