Examples of loadConfig()


Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

   {
      getLog().info("testXMLLoginModule");
      // Install the custom JAAS configuration
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      config.setConfigResource("security/login-config2.xml");
      config.loadConfig();
      Configuration.setConfiguration(config);

      AppConfigurationEntry[] entry = config.getAppConfigurationEntry("testXMLLoginModule");
      assertTrue("Found testXMLLoginModule", entry != null);
      getLog().info("testXMLLoginModule options: "+entry[0].getOptions());
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

   {
      getLog().info("testRoleMapping");
      // Install the custom JAAS configuration
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      config.setConfigResource("security/login-config2.xml");
      config.loadConfig();
      Configuration.setConfiguration(config);

      UsernamePasswordHandler handler = new UsernamePasswordHandler("jduke", "theduke".toCharArray());
      LoginContext lc = new LoginContext("testRoleMapping", handler);
      lc.login();
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

   private void generateConfiguration() throws IOException
   {
      // Install the custom JAAS configuration
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      config.setConfigResource(configFile);
      config.loadConfig();
   }
  
   private MBeanServerConnection getMBeanServerConnection() throws NamingException
   {
      Context ctx = new InitialContext();
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

   public void start() throws Exception
   {
      XMLLoginConfigImpl configuration = new XMLLoginConfigImpl();
      configuration.setConfigResource("login-config.xml");
      configuration.loadConfig();

      Configuration.setConfiguration(configuration);

      Context ctx = getInitialContext();
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

      URL configURL = Thread.currentThread().getContextClassLoader().getResource(configFile);
      assertNotNull("Config URL", configURL);

      xli.setConfigURL(configURL);
      xli.loadConfig();
   }

   public void testSuccessfulJASPI() throws Exception
   {
      AuthConfigProvider provider = factory.getConfigProvider(layer, appId, null);
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

      URL configURL = Thread.currentThread().getContextClassLoader().getResource(configFile);
      assertNotNull("Config URL", configURL);

      xli.setConfigURL(configURL);
      xli.loadConfig();
   }

   @SuppressWarnings("unchecked")
   public void testSuccessfulJASPI() throws Exception
   {
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

      SecurityActions.setJAASConfiguration(xli);
      URL configURL = Thread.currentThread().getContextClassLoader().getResource(configFile);
      assertNotNull("Config URL", configURL);

      xli.setConfigURL(configURL);
      xli.loadConfig();
   }

   public void testPermit_Permit_Permit() throws Exception
   {
      JBossSecurityContext sc = new JBossSecurityContext("Permit-Permit-Permit");
View Full Code Here

Examples of org.ofbiz.product.config.ProductConfigWrapper.loadConfig()

        configWrapper = ProductConfigWorker.getProductConfigWrapper(productId, cart.getCurrency(), request);

        if (configWrapper != null) {
            if (paramMap.containsKey("configId")) {
                try {
                    configWrapper.loadConfig(delegator, (String) paramMap.remove("configId"));
                } catch (Exception e) {
                    Debug.logWarning(e, "Could not load configuration", module);
                }
            } else {
                // The choices selected by the user are taken from request and set in the wrapper
View Full Code Here

Examples of org.ofbiz.product.config.ProductConfigWrapper.loadConfig()

        configWrapper = ProductConfigWorker.getProductConfigWrapper(productId, cart.getCurrency(), request);

        if (configWrapper != null) {
            if (paramMap.containsKey("configId")) {
                try {
                    configWrapper.loadConfig(delegator, (String) paramMap.remove("configId"));
                } catch (Exception e) {
                    Debug.logWarning(e, "Could not load configuration", module);
                }
            } else {
                // The choices selected by the user are taken from request and set in the wrapper
View Full Code Here

Examples of org.ofbiz.product.config.ProductConfigWrapper.loadConfig()

        configWrapper = ProductConfigWorker.getProductConfigWrapper(productId, cart.getCurrency(), request);

        if (configWrapper != null) {
            if (paramMap.containsKey("configId")) {
                try {
                    configWrapper.loadConfig(delegator, (String) paramMap.remove("configId"));
                } catch (Exception e) {
                    Debug.logWarning(e, "Could not load configuration", module);
                }
            } else {
                // The choices selected by the user are taken from request and set in the wrapper
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.