Class DefaultUserIDGenerator

  • All Implemented Interfaces:
    UserIDGenerator

    public class DefaultUserIDGenerator
    extends Object
    implements UserIDGenerator
    The class DefaultUserIDGenerator generates a set of user IDs based on the first name and last name of the user.
    • Constructor Detail

      • DefaultUserIDGenerator

        public DefaultUserIDGenerator()
    • Method Detail

      • generateUserIDs

        public Set generateUserIDs​(String orgName,
                                   Map attributes,
                                   int num)
        Generates a set of user IDs. The parameter num refers to the maximum number of user IDs returned. It is possible that the size of the returned Set is smaller than the parameter num.
        Specified by:
        generateUserIDs in interface UserIDGenerator
        Parameters:
        orgName - the DN of the organization
        attributes - the keys in the Map contains the attribute names and their corresponding values in the Map is a Set that contains the values for the attribute
        num - the maximum number of returned user IDs; 0 means there is no limit
        Returns:
        a set of auto-generated user IDs.