super.setConfiguration(configuration); LOG.debug(configuration.getInitParameterNames().toString()); try { File f = new File(getConfigFile());
/** * */ @Override public void setConfiguration(AuthConfiguration configuration) { super.setConfiguration(configuration); // is called after the bean setting -> do initialization here LOG.debug(configuration.getInitParameterNames().toString()); try { File f = new File(getConfigFile()); if (!f.exists()) { String jettyHome = System.getProperty("jetty.home"); if (jettyHome != null && jettyHome.length() > 0) { f = new File(jettyHome.concat(File.separator + getConfigFile())); } } configurator = new FedizConfigurator(); configurator.loadConfig(f); LOG.debug("Fediz configuration read from " + f.getAbsolutePath()); } catch (JAXBException | IOException e) { //[TODO] use other exception throw new RuntimeException("Failed to load Fediz configuration", e); //throw new ServerAuthException("Failed to load Fediz configuration", // e); } }
/** * */ @Override public void setConfiguration(AuthConfiguration configuration) { super.setConfiguration(configuration); // is called after the bean setting -> do initialization here LOG.debug(configuration.getInitParameterNames().toString()); try { File f = new File(getConfigFile()); if (!f.exists()) { String jettyHome = System.getProperty("jetty.home"); if (jettyHome != null && jettyHome.length() > 0) { f = new File(jettyHome.concat(File.separator + getConfigFile())); } } configurator = new FedizConfigurator(); configurator.loadConfig(f); LOG.debug("Fediz configuration read from " + f.getAbsolutePath()); } catch (JAXBException | IOException e) { //[TODO] use other exception throw new RuntimeException("Failed to load Fediz configuration", e); //throw new ServerAuthException("Failed to load Fediz configuration", // e); } }
for (String key : configuration.getInitParameterNames()) map.put(key,configuration.getInitParameter(key)); authenticator= new JaspiAuthenticator(serverAuthConfig,map,servletCallbackHandler,
for (String key : configuration.getInitParameterNames()) map.put(key,configuration.getInitParameter(key)); authenticator= new JaspiAuthenticator(serverAuthConfig,map,servletCallbackHandler,
for (String key : configuration.getInitParameterNames()) map.put(key,configuration.getInitParameter(key)); authenticator= new JaspiAuthenticator(serverAuthConfig,map,servletCallbackHandler,