Annotation Type CreditCardNumber


The annotated element has to represent a valid credit card number. This is the Luhn algorithm implementation which aims to check for user mistake, not credit card validity!
Author:
Hardy Ferentschik, Emmanuel Bernard
  • Element Details

    • message

      String message
      Default:
      "{org.hibernate.validator.constraints.CreditCardNumber.message}"
    • groups

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

      Class<? extends Payload>[] payload
      Default:
      {}
    • ignoreNonDigitCharacters

      @OverridesAttribute(constraint=LuhnCheck.class, name="ignoreNonDigitCharacters") boolean ignoreNonDigitCharacters
      Returns:
      Whether non-digit characters in the validated input should be ignored (true) or result in a validation error (false). Default is false
      Default:
      false