Author: sohil.shah(a)jboss.com
Date: 2009-02-08 22:32:05 -0500 (Sun, 08 Feb 2009)
New Revision: 12795
Removed:
modules/authorization/trunk/policy-server/src/main/java/org/jboss/security/authz/policy/server/plugin/RuleCombiningAlgImplies.java
modules/authorization/trunk/policy-server/src/test/resources/pdp-config.xml
Log:
some codebase cleanup
Deleted:
modules/authorization/trunk/policy-server/src/main/java/org/jboss/security/authz/policy/server/plugin/RuleCombiningAlgImplies.java
===================================================================
---
modules/authorization/trunk/policy-server/src/main/java/org/jboss/security/authz/policy/server/plugin/RuleCombiningAlgImplies.java 2009-02-09
03:21:21 UTC (rev 12794)
+++
modules/authorization/trunk/policy-server/src/main/java/org/jboss/security/authz/policy/server/plugin/RuleCombiningAlgImplies.java 2009-02-09
03:32:05 UTC (rev 12795)
@@ -1,69 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.security.authz.policy.server.plugin;
-
-import java.util.List;
-import java.util.Iterator;
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import org.jboss.security.xacml.sunxacml.combine.RuleCombiningAlgorithm;
-import org.jboss.security.xacml.sunxacml.EvaluationCtx;
-import org.jboss.security.xacml.sunxacml.ctx.Result;
-import org.jboss.security.xacml.sunxacml.Rule;
-import org.jboss.security.xacml.sunxacml.combine.RuleCombinerElement;
-
-/**
- * @author <a href="mailto:sshah@redhat.com">Sohil Shah</a>
- *
- */
-public class RuleCombiningAlgImplies extends RuleCombiningAlgorithm
-{
- /**
- *
- * @throws URISyntaxException
- */
- public RuleCombiningAlgImplies() throws URISyntaxException
- {
- super(new URI("rule-combining-alg:cms-implies"));
- }
-
- /**
- *
- * @param context
- * @param rules
- * @return
- */
- public Result combine(EvaluationCtx context, List parameters, List ruleElements)
- {
- Iterator rules = ruleElements.iterator();
- while(rules.hasNext())
- {
- RuleCombinerElement ruleCombinerElement = (RuleCombinerElement)rules.next();
- Rule rule = ruleCombinerElement.getRule();
- }
-
- // if nothing returned Permit, then the alg returns Deny
- return new Result(Result.DECISION_DENY);
- }
-}
Deleted: modules/authorization/trunk/policy-server/src/test/resources/pdp-config.xml
===================================================================
--- modules/authorization/trunk/policy-server/src/test/resources/pdp-config.xml 2009-02-09
03:21:21 UTC (rev 12794)
+++ modules/authorization/trunk/policy-server/src/test/resources/pdp-config.xml 2009-02-09
03:32:05 UTC (rev 12795)
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<config
xmlns="http://sunxacml.sourceforge.net/schema/config-0.3"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- defaultPDP="pdp" defaultAttributeFactory="attr"
- defaultCombiningAlgFactory="comb"
defaultFunctionFactory="func">
- <pdp name="pdp">
- <attributeFinderModule
class="org.jboss.security.xacml.sunxacml.finder.impl.CurrentEnvModule"/>
- <attributeFinderModule
class="org.jboss.security.xacml.sunxacml.finder.impl.SelectorModule"/>
- <policyFinderModule
class="org.jboss.security.xacml.sunxacml.finder.impl.FilePolicyModule">
- <list>
- <string>simple-policy.xml</string>
- </list>
- </policyFinderModule>
- </pdp>
-
- <attributeFactory name="attr" useStandardDatatypes="true"/>
-
- <combiningAlgFactory name="comb"
useStandardAlgorithms="true">
- <algorithm
class="org.jboss.security.authz.policy.server.plugin.NoPermitMeansDeniedAlg"/>
- </combiningAlgFactory>
-
- <functionFactory name="func" useStandardFunctions="true">
- <condition>
- <function
class="org.jboss.security.authz.policy.server.plugin.DroolsFunction"/>
- </condition>
- </functionFactory>
-</config>