Package oracle.iam.identity.usermgmt.api
Class AbstractUserNameGenerationPolicy
java.lang.Object
oracle.iam.identity.usermgmt.api.AbstractUserNameGenerationPolicy
- All Implemented Interfaces:
UserNameGenerationPolicy,UserNamePolicy
public abstract class AbstractUserNameGenerationPolicy
extends Object
implements UserNameGenerationPolicy
Abstract class that implements deprecated API's
so that custom policy implementations have no need to implement them.
- Author:
- madsharm TODO: Should we expose this to customers? If we dont, then customers will have to implement all the methods (both that accepts MAP<String,String> and MAP<String,Object> ).)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey/Constant to retrieve the User's existing attributes from the input parameter Map. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUserNameFromPolicy(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 policyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.iam.identity.usermgmt.api.UserNameGenerationPolicy
getUserName, isGivenUserNameValidMethods inherited from interface oracle.iam.identity.usermgmt.api.UserNamePolicy
getDescription
-
Field Details
-
EXISTING_DATA
Key/Constant to retrieve the User's existing attributes from the input parameter Map.- See Also:
-
-
Constructor Details
-
AbstractUserNameGenerationPolicy
public AbstractUserNameGenerationPolicy()
-
-
Method Details
-
getUserNameFromPolicy
Description copied from interface:UserNamePolicyGenerates a user name based on the user name generation policy using the user data available in the inputMap- Specified by:
getUserNameFromPolicyin interfaceUserNamePolicy- Parameters:
reqData- theMapcontaining the user data- Returns:
- the generated user name
- Throws:
UserNameGenerationException- if there is an exception while generating the user name
-
isUserNameValid
Description copied from interface:UserNamePolicyValidates if the user name based on the user data specified in the inputMapis valid as per the user name generation policy- Specified by:
isUserNameValidin interfaceUserNamePolicy- 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
-