Annotation Interface ValidPassword


@Documented @Constraint(validatedBy=PasswordValidator.class) @Target({FIELD,PARAMETER}) @Retention(RUNTIME) public @interface ValidPassword
This annotation checks whether a given password is valid.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends jakarta.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "must be between 8 and 65 characters and at least 2 of the following: alphanumeric characters and/or one specialcharacter ( @#$%^&+=!? ) and/or one capital letter"
    • groups

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

      Class<? extends jakarta.validation.Payload>[] payload
      Default:
      {}