package com.eactive.httpmockserver.common.validator;

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

@Constraint(validatedBy = PasswordMatchValidator.class)
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PasswordMatch {
    String message() default "{password.not.match}";

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

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

    String input();

    String confirm();
}