Class MaskFormatterSubString
java.lang.Object
org.kuali.rice.krad.datadictionary.mask.MaskFormatterSubString
- All Implemented Interfaces:
Serializable,MaskFormatter
The maskTo element is to used hide the beginning part of the value for
unauthorized users. The number of leading characters to hide and the
replacement character can be specified.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the maskCharacter attribute.intGets the maskLength attribute.Takes in the real data value and returns a masked string.voidsetMaskCharacter(String maskCharacter) Specify the character with which to mask the original value.voidsetMaskLength(int maskLength) Set the number of characters to mask at the beginning of the string.
-
Field Details
-
maskCharacter
-
maskLength
protected int maskLength
-
-
Constructor Details
-
MaskFormatterSubString
public MaskFormatterSubString()
-
-
Method Details
-
maskValue
Description copied from interface:MaskFormatterTakes in the real data value and returns a masked string.- Specified by:
maskValuein interfaceMaskFormatter- Parameters:
value- - data value- Returns:
- String - masked value
-
getMaskCharacter
Gets the maskCharacter attribute.- Returns:
- Returns the maskCharacter.
-
setMaskCharacter
Specify the character with which to mask the original value.- Parameters:
maskCharacter- for masking values
-
getMaskLength
public int getMaskLength()Gets the maskLength attribute.- Returns:
- Returns the maskLength.
-
setMaskLength
public void setMaskLength(int maskLength) Set the number of characters to mask at the beginning of the string.- Parameters:
maskLength- The maskLength to set.
-