Example usage for Java org.apache.commons.validator.routines CreditCardValidator fields, constructors, methods, implement or subclass
The text is from its open source code.
long | NONE Option specifying that no cards are allowed. |
long | AMEX Option specifying that American Express cards are allowed. |
long | VISA Option specifying that Visa cards are allowed. |
long | MASTERCARD Option specifying that Mastercard cards are allowed. |
CreditCardValidator(long options) Create a new CreditCardValidator with the specified options. | |
CreditCardValidator(CodeValidator[] creditCardValidators) Create a new CreditCardValidator with the specified CodeValidator s. | |
CreditCardValidator() Create a new CreditCardValidator with default options. |
boolean | isValid(String card) Checks if the field is a valid credit card number. |
Object | validate(String card) Checks if the field is a valid credit card number. |