Package oracle.iam.identity.usermgmt.api
Interface UserNamePolicy
- All Known Subinterfaces:
UserNameGenerationPolicy
- All Known Implementing Classes:
AbstractUserNameGenerationPolicy
public interface UserNamePolicy
- Author:
- snsingh
This is an interface that must be implemented by the policies used for
username generation.
-
Method Summary
Modifier and TypeMethodDescriptiongetDescription(Locale locale) Gets the description of the user name policy in the specified localegetUserNameFromPolicy(Map<String, String> reqData) Generates a user name based on the user name generation policy using the user data available in the inputMapbooleanisUserNameValid(String userName, Map<String, String> reqData) Validates if the user name based on the user data specified in the inputMapis valid as per the user name generation policy
-
Method Details
-
getUserNameFromPolicy
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
-
isUserNameValid
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
-
getDescription
Gets the description of the user name policy in the specified locale- Parameters:
locale- locale in which the policy description is to be specified- Returns:
- description of the user name policy in the specified locale
-