Modifying the sample user mapping plug-in files (Java programming language)
The sample Java™ plug-in retrieves user mappings from an LDAP server. You can modify the plug-in to retrieve user mappings from other types of external repositories. Use the sample plug-in as the starting point for developing a customized plug-in that works with your specific external repository.
Each sample file accomplishes a different task in the process of retrieving user mappings. You modify many of the functions and classes in the sample code to work with your specific external repository. The following table lists the important functions.
| File name | Element to modify | Class to reference |
|---|---|---|
| UserMappingCryptoLDAP.java | |
UserMappingCrypto class
UserMappingException class |
| UserMappingRepositoryLDAP.java | |
UserMappingRepository class
UserMappingEntry class UserMappingOption class UserMappingException class |
| UserMappingSetupLDAP.java | Modify this file to create a configuration file that stores the values that your plug-in requires for connecting to the external repository and retrieving user mappings from it. If you manually create a configuration file, ensure that the passwords that you store in the file are encrypted. The configuration file name must match the name of the repository class, for example, UserMappingRepositoryXXXX class and UserMappingRepositoryXXXX.cfg file. |