Package com.sun.xacml.combine

Examples of com.sun.xacml.combine.RuleCombiningAlgorithm


    return createDefaultPolicy(createUniqueId(parent, DEFAULT_POLICY_ID));
  }
  public static Policy createDefaultPolicy(String policyID)
  {
    final Target emptyTarget = createEmptyTarget();
    final RuleCombiningAlgorithm alg = new OrderedPermitOverridesRuleAlg();
    final Rule denyEverythingRule = createDefaultRule("DenyAll");
    final List<Rule> rules = Collections.singletonList(denyEverythingRule);
    return new Policy(URI.create(policyID), alg, DEFAULT_DESCRIPTION, emptyTarget, rules);
  }
View Full Code Here


    return createPolicy(null);
  }
  public Policy createPolicy(URI id)
  {
    final Target target = getTarget().getTarget();
    final RuleCombiningAlgorithm algorithm = (RuleCombiningAlgorithm)getCombiningAlgorithm();
    final List<Rule> rawRules = new ArrayList<Rule>(rules.size());
    for(final RuleNode rule : rules)
      rawRules.add(rule.createRule());
    final URI useId = (id == null) ? getId() : id;
    return new Policy(useId, algorithm, getDescription(), target, rawRules);
View Full Code Here

TOP

Related Classes of com.sun.xacml.combine.RuleCombiningAlgorithm

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.