Package com.sun.xacml

Examples of com.sun.xacml.PolicySet


            log.info("No matching XACML policy found");
            return null;
        case 1:
            return ((AbstractPolicy) (list.get(0)));
        default:
            return new PolicySet(parentId, combiningAlg, target, list);
        }
    }
View Full Code Here


    final Target target = getTarget().getTarget();
    final List<PolicyTreeElement> copy = new ArrayList<PolicyTreeElement>(children.size());
    for(final PolicyElementNode child : children)
      copy.add(child.create());
    final URI useId = (id == null) ? getId() : id;
    return new PolicySet(useId, algorithm, getDescription(), target, copy);
  }
View Full Code Here

    return createDefaultPolicySet(createUniqueId(parent, DEFAULT_POLICY_SET_ID));
  }
  public static PolicySet createDefaultPolicySet(String policySetID)
  {
    final PolicyCombiningAlgorithm alg = new OrderedPermitOverridesPolicyAlg();
    return new PolicySet(URI.create(policySetID), alg, createEmptyTarget());
  }
View Full Code Here

      }
      root.add(new PolicyNode(root, documentName, policy));
    }
    else if(/*XACMLConstants.XACML_POLICY_NAMESPACE.equals(namespace) && */XACMLConstants.POLICY_SET_ELEMENT_LOCAL_NAME.equals(tagName))
    {
      PolicySet policySet;
      try
      {
        policySet = PolicySet.getInstance(rootElement);
      }
      catch(final ParsingException pe)
View Full Code Here

  private void newPolicySet()
  {
    if(contextNode instanceof PolicySetNode || contextNode instanceof RootNode)
    {
      final PolicyElementContainer node =((PolicyElementContainer)contextNode);
      final PolicySet ps = XACMLEditor.createDefaultPolicySet(node);
      node.add(ps);
    }
  }
View Full Code Here

                }
            }
            PolicyCombiningAlgorithm policyCombiningAlgorithm =
                    (PolicyCombiningAlgorithm) Class
                            .forName(m_combiningAlgorithm).newInstance();
            PolicySet policySet =
                    new PolicySet(new URI(""),
                                  policyCombiningAlgorithm,
                                  null /*
                                   * no general target beyond those of
                                   * multiplexed individual policies
                                   */,
 
View Full Code Here

            case 1:
                Iterator<AbstractPolicy> i = list.values().iterator();
                AbstractPolicy p = i.next();
                return p;
            default:
                return new PolicySet(parentPolicyId,
                                     m_combiningAlg,
                                     m_target,
                                     new ArrayList<AbstractPolicy>(list
                                             .values()));
        }
View Full Code Here

        case 0:
            return null;
        case 1:
            return ((AbstractPolicy) (list.get(0)));
        default:
            return new PolicySet(parentId, combiningAlg, target, list);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.xacml.PolicySet

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.