Package org.jboss.security.xacml.sunxacml.support.finder

Examples of org.jboss.security.xacml.sunxacml.support.finder.PolicyReader


    */
   public void init(PolicyFinder finder)
   {
      String clazzName = JBossStaticPolicyFinderModule.class.getName();
      // now that we have the PolicyFinder, we can load the policies
      PolicyReader reader = new PolicyReader(finder, java.util.logging.Logger.getLogger(clazzName), schemaFile);

      Iterator it = policyList.iterator();
      while (it.hasNext())
      {
         String str = (String) (it.next());
         AbstractPolicy policy = null;
         try
         {
            try
            {
               // first try to load it as a URL
               URL url = new URL(str);
               policy = reader.readPolicy(url);
            }
            catch (MalformedURLException murle)
            {
               // assume that this is a filename, and try again
               policy = reader.readPolicy(new File(str));
            }
         }
         catch (ParsingException e)
         {
            this.encounteredParsingException = true;
View Full Code Here

TOP

Related Classes of org.jboss.security.xacml.sunxacml.support.finder.PolicyReader

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.