Class DefaultUserIDGenerator
- java.lang.Object
-
- com.sun.identity.authentication.spi.DefaultUserIDGenerator
-
- All Implemented Interfaces:
UserIDGenerator
public class DefaultUserIDGenerator extends Object implements UserIDGenerator
The classDefaultUserIDGeneratorgenerates a set of user IDs based on the first name and last name of the user.
-
-
Constructor Summary
Constructors Constructor Description DefaultUserIDGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetgenerateUserIDs(String orgName, Map attributes, int num)Generates a set of user IDs.
-
-
-
Method Detail
-
generateUserIDs
public Set generateUserIDs(String orgName, Map attributes, int num)
Generates a set of user IDs. The parameternumrefers to the maximum number of user IDs returned. It is possible that the size of the returnedSetis smaller than the parameter num.- Specified by:
generateUserIDsin interfaceUserIDGenerator- Parameters:
orgName- the DN of the organizationattributes- the keys in theMapcontains the attribute names and their corresponding values in theMapis aSetthat contains the values for the attributenum- the maximum number of returned user IDs; 0 means there is no limit- Returns:
- a set of auto-generated user IDs.
-
-