Class cls = loader.loadClass(classname);
KeyGeneratorFactory factory = (KeyGeneratorFactory) cls.newInstance();
_factories.put(factory.getAlgorithmName(), factory);
if (!factory.hasMandatoryParameters()) {
KeyGenerator generator = factory.createKeyGenerator();
_generators.put(generator.getAlias(), generator);
}
} catch (Exception ex) {
String msg = "Problem instantiating key generator factory: ";
LOG.error(msg + classname, ex);
}