| | |
| | | |
| | | if (generatorConfiguration.isEnabled()) |
| | | { |
| | | String className = generatorConfiguration.getGeneratorClass(); |
| | | String className = generatorConfiguration.getJavaClass(); |
| | | try |
| | | { |
| | | PasswordGenerator<? extends PasswordGeneratorCfg> |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // password generator. |
| | | String className = configuration.getGeneratorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadGenerator(className, configuration, false); |
| | |
| | | // changed then we'll at least need to indicate that administrative action |
| | | // is required. If the generator is disabled, then instantiate the class |
| | | // and initialize and register it as a password generator. |
| | | String className = configuration.getGeneratorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | if (existingGenerator != null) |
| | | { |
| | | if (! className.equals(existingGenerator.getClass().getName())) |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // password generator. |
| | | String className = configuration.getGeneratorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadGenerator(className, configuration, false); |
| | |
| | | |
| | | // Get the name of the class and make sure we can instantiate it as a |
| | | // password generator. |
| | | String className = configuration.getGeneratorClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | passwordGenerator = loadGenerator(className, configuration, true); |
| | |
| | | PasswordGeneratorCfgDefn definition = |
| | | PasswordGeneratorCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getGeneratorClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends PasswordGenerator> generatorClass = |
| | | propertyDefinition.loadClass(className, PasswordGenerator.class); |
| | | PasswordGenerator<? extends PasswordGeneratorCfg> generator = |