Package com.sun.xacml.combine

Examples of com.sun.xacml.combine.PolicyCombiningAlgorithm


     *
     * @see com.sun.xacml.finder.PolicyFinderModule#init(com.sun.xacml.finder.PolicyFinder)
     */
    public void init(PolicyFinder finder) {
        AbstractPolicy[] policies;
        PolicyCombiningAlgorithm algorithm;


        try {
            policies = policyReader.readPolicies();

View Full Code Here


    *                                    isn't known
    */
   public JBossStaticPolicyFinderModule(String combiningAlg, List policyList)
       throws URISyntaxException, UnknownIdentifierException
   {
       PolicyCombiningAlgorithm alg = (PolicyCombiningAlgorithm)
           (CombiningAlgFactory.getInstance().
            createAlgorithm(new URI(combiningAlg)));

       this.policyList = policyList;
       this.policies = new PolicyCollection(alg, policyId);
View Full Code Here

    */
   public JBossStaticPolicyFinderModule(String combiningAlg, List policyList,
                                   String schemaFile)
       throws URISyntaxException, UnknownIdentifierException
   {
       PolicyCombiningAlgorithm alg = (PolicyCombiningAlgorithm)
           (CombiningAlgFactory.getInstance().
            createAlgorithm(new URI(combiningAlg)));

       this.policyList = policyList;
       this.policies = new PolicyCollection(alg, policyId);
View Full Code Here

  public PolicySet createPolicySet(URI id)
  {
    final CombiningAlgorithm alg = getCombiningAlgorithm();
    if(!(alg instanceof PolicyCombiningAlgorithm))
      {throw new IllegalStateException("Combining algorithm must be a policy combining algorithm");}
    final PolicyCombiningAlgorithm algorithm = (PolicyCombiningAlgorithm)alg;
    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;
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

                                                         m_validateObjectPoliciesFromDatastream);
                if (objectPolicyFromObject != null) {
                    policies.add(objectPolicyFromObject);
                }
            }
            PolicyCombiningAlgorithm policyCombiningAlgorithm =
                    (PolicyCombiningAlgorithm) Class
                            .forName(m_combiningAlgorithm).newInstance();
            PolicySet policySet =
                    new PolicySet(new URI(""),
                                  policyCombiningAlgorithm,
View Full Code Here

    *                                    isn't known
    */
   public JBossStaticPolicyFinderModule(String combiningAlg, List policyList)
       throws URISyntaxException, UnknownIdentifierException
   {
       PolicyCombiningAlgorithm alg = (PolicyCombiningAlgorithm)
           (CombiningAlgFactory.getInstance().
            createAlgorithm(new URI(combiningAlg)));

       this.policyList = policyList;
       this.policies = new PolicyCollection(alg, policyId);
View Full Code Here

    */
   public JBossStaticPolicyFinderModule(String combiningAlg, List policyList,
                                   String schemaFile)
       throws URISyntaxException, UnknownIdentifierException
   {
       PolicyCombiningAlgorithm alg = (PolicyCombiningAlgorithm)
           (CombiningAlgFactory.getInstance().
            createAlgorithm(new URI(combiningAlg)));

       this.policyList = policyList;
       this.policies = new PolicyCollection(alg, policyId);
View Full Code Here

/*     */   }
/*     */
/*     */   public JBossStaticPolicyFinderModule(String combiningAlg, List policyList)
/*     */     throws URISyntaxException, UnknownIdentifierException
/*     */   {
/* 147 */     PolicyCombiningAlgorithm alg = (PolicyCombiningAlgorithm)(PolicyCombiningAlgorithm)CombiningAlgFactory.getInstance().createAlgorithm(new URI(combiningAlg));
/*     */
/* 151 */     this.policyList = policyList;
/* 152 */     this.policies = new PolicyCollection(alg, policyId);
/*     */
/* 154 */     String schemaName = System.getProperty("com.sun.xacml.PolicySchema");
View Full Code Here

/*     */   }
/*     */
/*     */   public JBossStaticPolicyFinderModule(String combiningAlg, List policyList, String schemaFile)
/*     */     throws URISyntaxException, UnknownIdentifierException
/*     */   {
/* 183 */     PolicyCombiningAlgorithm alg = (PolicyCombiningAlgorithm)(PolicyCombiningAlgorithm)CombiningAlgFactory.getInstance().createAlgorithm(new URI(combiningAlg));
/*     */
/* 187 */     this.policyList = policyList;
/* 188 */     this.policies = new PolicyCollection(alg, policyId);
/*     */
/* 190 */     if (schemaFile != null)
View Full Code Here

TOP

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

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.