Package org.jboss.security.config

Examples of org.jboss.security.config.PolicyConfig


      {
         throw new IllegalStateException("Unexpected root element: was expecting 'policy' but got '" + localName + "'");
      }
      if( trace )
         log.trace("newRoot, created PolicyConfig for policy element");
      return new PolicyConfig();
   }
View Full Code Here


      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);
      xmlConfig.copy(config);
     
      // Add the config to SecurityConfiguration
      for (String cname : cnames)
      {
         ApplicationPolicy ap = config.get(cname);
         SecurityConfiguration.addApplicationPolicy(ap);
         handleJASPIDelegation(ap);
      }

   }
View Full Code Here

      {
         throw new IllegalStateException("Unexpected root element: was expecting 'policy' but got '" + localName + "'");
      }
      if (trace)
         log.trace("newRoot, created PolicyConfig for policy element");
      return new PolicyConfig();
   }
View Full Code Here

      {
         throw new IllegalStateException("Unexpected root element: was expecting 'policy' but got '" + localName + "'");
      }
      if( trace )
         log.trace("newRoot, created PolicyConfig for policy element");
      return new PolicyConfig();
   }
View Full Code Here

      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)
      {
         ApplicationPolicy ap = config.get(cname);
         SecurityConfiguration.addApplicationPolicy(ap);
         handleJASPIDelegation(ap);
      }
   }
View Full Code Here

      {
         throw new IllegalStateException("Unexpected root element: was expecting 'policy' but got '" + localName + "'");
      }
      if( trace )
         log.trace("newRoot, created PolicyConfig for policy element");
      return new PolicyConfig();
   }
View Full Code Here

      {
         throw new IllegalStateException("Unexpected root element: was expecting 'policy' but got '" + localName + "'");
      }
      if( trace )
         log.trace("newRoot, created PolicyConfig for policy element");
      return new PolicyConfig();
   }
View Full Code Here

/*     */
/* 418 */     InputStreamReader xmlReader = loadURL(loginConfigURL);
/* 419 */     Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/* 420 */     unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
/* 421 */     Object root = null;
/* 422 */     PolicyConfig config = (PolicyConfig)unmarshaller.unmarshal(xmlReader, lcomf, root);
/* 423 */     Set cnames = config.getConfigNames();
/* 424 */     configNames.addAll(cnames);
/* 425 */     this.appConfigs.copy(config);
/*     */
/* 427 */     for (String cname : cnames)
/*     */     {
/* 429 */       ApplicationPolicy ap = config.get(cname);
/* 430 */       SecurityConfiguration.addApplicationPolicy(ap);
/* 431 */       handleJASPIDelegation(ap);
/*     */     }
/*     */   }
View Full Code Here

/*     */     {
/*  60 */       throw new IllegalStateException("Unexpected root element: was expecting 'policy' but got '" + localName + "'");
/*     */     }
/*  62 */     if (this.trace)
/*  63 */       log.trace("newRoot, created PolicyConfig for policy element");
/*  64 */     return new PolicyConfig();
/*     */   }
View Full Code Here

      {
         throw new IllegalStateException("Unexpected root element: was expecting 'policy' but got '" + localName + "'");
      }
      if (trace)
         log.trace("newRoot, created PolicyConfig for policy element");
      return new PolicyConfig();
   }
View Full Code Here

TOP

Related Classes of org.jboss.security.config.PolicyConfig

Copyright © 2018 www.massapicom. 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.