|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.field.creditcard.DefaultCreditCardMask
public class DefaultCreditCardMask
A default implementation of CreditCardMask to mask a credit card number by hiding a number of digits in
the middle the number.
| Constructor Summary | |
|---|---|
DefaultCreditCardMask()
|
|
DefaultCreditCardMask(int firstDigits,
int lastDigits)
|
|
DefaultCreditCardMask(int firstDigits,
int lastDights,
char maskChar)
|
|
| Method Summary | |
|---|---|
int |
getFirstDigits()
Gets the number of the first few digits that will be kept without being masked. |
int |
getLastDigits()
Gets the number of the last few digits that will be kept without being masked. |
char |
getMaskChar()
Gets the mask char. |
String |
mask(String cardNumber)
Creates a masked version of the specified credit card number. |
void |
setFirstDigits(int firstDigits)
Sets the number of the first few digits that will be kept without being masked. |
void |
setLastDigits(int lastDigits)
Sets the number of the last few digits that will be kept without being masked. |
void |
setMaskChar(char maskChar)
Sets the mask char. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCreditCardMask()
public DefaultCreditCardMask(int firstDigits,
int lastDigits)
public DefaultCreditCardMask(int firstDigits,
int lastDights,
char maskChar)
| Method Detail |
|---|
public int getFirstDigits()
public void setFirstDigits(int firstDigits)
firstDigits - the number of the first few digits that will be kept without being masked.public int getLastDigits()
public void setLastDigits(int lastDigits)
lastDigits - the number of the last few digits that will be kept without being masked.public char getMaskChar()
public void setMaskChar(char maskChar)
maskChar - A new mask char.public String mask(String cardNumber)
setFirstDigits(int) and setLastDigits(int).
mask in interface CreditCardMaskcardNumber - the credit card number to be masked
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||