Examples of PolicyConfig


Examples of org.jboss.security.config.PolicyConfig

      InputStreamReader xmlReader = loadURL(loginConfigURL);
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
      Object root = null;
      PolicyConfig config = (PolicyConfig) unmarshaller.unmarshal(xmlReader, lcomf, root);
      Set<String> cnames = config.getConfigNames();
      configNames.addAll(cnames);
      appConfigs.copy(config);
      //Add the config to SecurityConfiguration
      for(String cname:cnames)
      {
         SecurityConfiguration.addApplicationPolicy(cname, config.get(cname));
      }
   }
View Full Code Here

Examples of org.jboss.test.xml.mbeanserver.PolicyConfig

         attributes.size() == 2);
      MBeanAttribute attr = (MBeanAttribute) attributes.get("PolicyConfig");
      Object value = attr.getValue();
      assertTrue("Value isA PolicyConfig",
          value instanceof PolicyConfig );
      PolicyConfig pc = (PolicyConfig) value;
      assertTrue("There 1 AuthenticationInfo",
         pc.size() == 1);
      AuthenticationInfo auth = pc.get("conf1");
      assertTrue("The AuthenticationInfo name ic config1",
         auth != null);
      AppConfigurationEntry[] ace = auth.getAppConfigurationEntry();
      assertTrue("The AppConfigurationEntry has one entry",
         ace != null && ace.length == 1);
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.