Class PasswordUtils
java.lang.Object
com.ibm.wsspi.collective.plugins.helpers.PasswordUtils
Small helper class to mask potential passwords in a string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
maskPasswords
(String inStr) This method will mask the password if the parameter contains --.*password.*= or --.*pwd.*=static Object
maskPasswords
(String key, Object obj) This method will mask the password if the key contains --.*password.*= or --.*pwd.*=
-
Constructor Details
-
PasswordUtils
public PasswordUtils()
-
-
Method Details
-
maskPasswords
This method will mask the password if the parameter contains --.*password.*= or --.*pwd.*=- Parameters:
inStr
-- Returns:
- Throws:
UnsupportedEncodingException
-
maskPasswords
This method will mask the password if the key contains --.*password.*= or --.*pwd.*=- Parameters:
key
-obj
-- Returns:
- ******** if key contain password or pwd obj otherwise
-