Class MaskUtil
- java.lang.Object
-
- io.mosip.authentication.core.util.MaskUtil
-
public class MaskUtil extends Object
The Class MaskUtil is used to mask a value to a particular char set as configured- Author:
- Sanjay Murali
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgenerateMaskValue(String maskValue, int maskNo)generateMaskValue method is used to mask the email/mobile with mask number.static StringmaskEmail(String email)maskEmail method used to mask emailstatic StringmaskMobile(String mobileNumber)maskMobile method used to mask mobile number
-
-
-
Method Detail
-
generateMaskValue
public static String generateMaskValue(String maskValue, int maskNo)
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
public static String maskEmail(String email) throws IdAuthenticationBusinessException
maskEmail method used to mask email- Parameters:
email- the email- Returns:
- the string
- Throws:
IdAuthenticationBusinessException
-
maskMobile
public static String maskMobile(String mobileNumber) throws IdAuthenticationBusinessException
maskMobile method used to mask mobile number- Parameters:
mobileNumber- the mobile number- Returns:
- the string
- Throws:
IdAuthenticationBusinessException
-
-