| | |
| | | |
| | | if (handlerConfiguration.isEnabled()) |
| | | { |
| | | String className = handlerConfiguration.getHandlerClass(); |
| | | String className = handlerConfiguration.getJavaClass(); |
| | | try |
| | | { |
| | | SASLMechanismHandler handler = loadHandler(className, |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a SASL |
| | | // mechanism handler. |
| | | String className = configuration.getHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadHandler(className, configuration, false); |
| | |
| | | |
| | | // Get the name of the class and make sure we can instantiate it as a SASL |
| | | // mechanism handler. |
| | | String className = configuration.getHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | handler = loadHandler(className, configuration, true); |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as a SASL |
| | | // mechanism handler. |
| | | String className = configuration.getHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadHandler(className, configuration, false); |
| | |
| | | // then we'll at least need to indicate that administrative action is |
| | | // required. If the handler is disabled, then instantiate the class and |
| | | // initialize and register it as a SASL mechanism handler. |
| | | String className = configuration.getHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | if (existingHandler != null) |
| | | { |
| | | if (! className.equals(existingHandler.getClass().getName())) |
| | |
| | | SASLMechanismHandlerCfgDefn definition = |
| | | SASLMechanismHandlerCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getHandlerClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends SASLMechanismHandler> handlerClass = |
| | | propertyDefinition.loadClass(className, SASLMechanismHandler.class); |
| | | SASLMechanismHandler handler = handlerClass.newInstance(); |