|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.field.creditcard.CreditCardValidator
public class CreditCardValidator
Check if the input credit card number is valid depending on which credit card types are allowed.
Constructor Summary | |
---|---|
CreditCardValidator()
Creates a CreditCardValidator allowing all supported credit card issuers. |
|
CreditCardValidator(String[] allowedIssuerNames)
Creates a CreditCardValidator with an array of allowed credit card issuer names. |
Method Summary | |
---|---|
CardIssuer |
getCardIssuer(String cardNumber)
Check if the specified card number is 13-19 digits number format; check if the specified card number is valid based on the Luhn algorithm; check if the specified card number is valid based on the validation from one of the allowed card issuers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreditCardValidator()
public CreditCardValidator(String[] allowedIssuerNames)
allowedIssuerNames
- allowed card issuers' names.Method Detail |
---|
public CardIssuer getCardIssuer(String cardNumber)
cardNumber
- number to be checked
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |