Annotation Type PasswordsMatch


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Constraint(validatedBy=PasswordsMatchValidator.class)
    public @interface PasswordsMatch
    Defines the annotation of the validator that checks if the new password and confirm password fields match
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?>[] groups  
      java.lang.String message
      Defines the key of the error message in the localisation file if this validation step fails
      java.lang.Class<? extends javax.validation.Payload>[] payload  
    • Element Detail

      • message

        java.lang.String message
        Defines the key of the error message in the localisation file if this validation step fails
        Returns:
        the message key
        Default:
        "{error.confirm_password.not_matching}"
      • groups

        java.lang.Class<?>[] groups
        Default:
        {}
      • payload

        java.lang.Class<? extends javax.validation.Payload>[] payload
        Default:
        {}