Annotation Type ValidPassword


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    @Constraint(validatedBy=ValidPasswordValidator.class)
    public @interface ValidPassword
    Defines the annotation of the validator that checks if the password supplies matches the password of the current user
    • 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.current_password.invalid}"
      • groups

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

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