Skip navigation links
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 java.lang.Object
- implements UserNameGenerationPolicy
Abstract class that implements deprecated API's so that custom policy implementations have no need to implement them.
Field Summary |
static java.lang.String |
EXISTING_DATA
Key/Constant to retrieve the User's existing attributes from the input parameter Map. |
Method Summary |
java.lang.String |
getUserNameFromPolicy(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 |
isUserNameValid(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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXISTING_DATA
public static final java.lang.String EXISTING_DATA
- Key/Constant to retrieve the User's existing attributes from the input parameter Map.
- See Also:
- Constant Field Values
AbstractUserNameGenerationPolicy
public AbstractUserNameGenerationPolicy()
getUserNameFromPolicy
public java.lang.String getUserNameFromPolicy(java.util.Map reqData)
throws UserNameGenerationException
- Description copied from interface:
UserNamePolicy
- Generates a user name based on the user name generation policy using the user data available in the input
Map
-
- Specified by:
getUserNameFromPolicy
in interface UserNamePolicy
-
- Parameters:
reqData
- the Map
containing the user data
- Returns:
- the generated user name
- Throws:
UserNameGenerationException
- if there is an exception while generating the user name
isUserNameValid
public boolean isUserNameValid(java.lang.String userName,
java.util.Map reqData)
- Description copied from interface:
UserNamePolicy
- Validates if the user name based on the user data specified in the input
Map
is valid as per the user name generation policy
-
- Specified by:
isUserNameValid
in interface UserNamePolicy
-
- Parameters:
userName
- the user name to be validated against the policy
reqData
- the Map
containing the user data
- Returns:
- True if the user name is valid as per the policy, false otherwise
Skip navigation links
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.