Class MaskUtil
java.lang.Object
io.mosip.authentication.core.util.MaskUtil
The Class MaskUtil is used to mask a value
to a particular char set as configured
- Author:
- Sanjay Murali
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateMaskValue(String maskValue, int maskNo) generateMaskValue method is used to mask the email/mobile with mask number.static StringmaskEmail method used to mask emailstatic StringmaskMobile(String mobileNumber) maskMobile method used to mask mobile number
-
Method Details
-
generateMaskValue
generateMaskValue method is used to mask the email/mobile with mask number.- Parameters:
maskValue- the value to be maskedmaskNo- the number of char set to the masked- Returns:
- the string
-
maskEmail
maskEmail method used to mask email- Parameters:
email- the email- Returns:
- the string
- Throws:
IdAuthenticationBusinessException
-
maskMobile
maskMobile method used to mask mobile number- Parameters:
mobileNumber- the mobile number- Returns:
- the string
- Throws:
IdAuthenticationBusinessException
-