public interface UserNameGenerationPolicy extends UserNamePolicy
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUserName(java.util.Map reqData)
Generates a user name based on the user name generation policy
using the user data available in the input
Map |
boolean |
isGivenUserNameValid(java.lang.String userName,
java.util.Map reqData)
Validates if the user name based on the user data specified in the input
Map is valid as per the user name generation policy |
getDescription, getUserNameFromPolicy, isUserNameValid
java.lang.String getUserName(java.util.Map reqData) throws UserNameGenerationException
Map
reqData
- the Map
containing the user dataUserNameGenerationException
- if there is an exception while generating the user nameboolean isGivenUserNameValid(java.lang.String userName, java.util.Map reqData)
Map
is valid as per the user name generation policyuserName
- the user name to be validated against the policyreqData
- the Map
containing the user data