Package oracle.iam.identity.usermgmt.api
Interface UserNameGenerationPolicy
- All Superinterfaces:
UserNamePolicy
- All Known Implementing Classes:
AbstractUserNameGenerationPolicy
-
Method Summary
Modifier and TypeMethodDescriptiongetUserName(Map<String, Object> reqData) Generates a user name based on the user name generation policy using the user data available in the inputMapbooleanisGivenUserNameValid(String userName, Map<String, Object> reqData) Validates if the user name based on the user data specified in the inputMapis valid as per the user name generation policyMethods inherited from interface oracle.iam.identity.usermgmt.api.UserNamePolicy
getDescription, getUserNameFromPolicy, isUserNameValid
-
Method Details
-
getUserName
Generates a user name based on the user name generation policy using the user data available in the inputMap- Parameters:
reqData- theMapcontaining the user data- Returns:
- the generated user name
- Throws:
UserNameGenerationException- if there is an exception while generating the user name
-
isGivenUserNameValid
Validates if the user name based on the user data specified in the inputMapis valid as per the user name generation policy- Parameters:
userName- the user name to be validated against the policyreqData- theMapcontaining the user data- Returns:
- True if the user name is valid as per the policy, false otherwise
-