Creating an instance of RgyRegistry

After creating the configuration file, use this API with the corresponding LDAP account on the existing Security Access Manager registry. If the configuration file is located at /opt/testapp/testapp.properties, then the sample configuration file is as follows:

URL propertiesUrl = null;
try {
propertiesUrl = new URL("file:///opt/testapp/testapp.properties");
}
catch (MalformedURLException e) {
e.printStackTrace();
System.exit(1);
}

RgyRegistry rgyRegistry = null;
try {
rgyRegistry = LdapRgyRegistryFactory.getRgyRegistryInstance
(propertiesUrl, null);
}
catch (RgyException e) {
e.printStackTrace();
System.exit(1);
}