Examples of PolicyType


Examples of org.apache.syncope.common.types.PolicyType

    }

    public SyncPolicyTO(boolean global) {
        super();

        PolicyType type = global
                ? PolicyType.GLOBAL_SYNC
                : PolicyType.SYNC;
        setType(type);
    }
View Full Code Here

Examples of org.apache.syncope.common.types.PolicyType

    }

    public AccountPolicyTO(boolean global) {
        super();

        PolicyType type = global
                ? PolicyType.GLOBAL_ACCOUNT
                : PolicyType.ACCOUNT;
        setType(type);
    }
View Full Code Here

Examples of org.apache.syncope.common.types.PolicyType

    }

    public PasswordPolicyTO(boolean global) {
        super();

        PolicyType type = global
                ? PolicyType.GLOBAL_PASSWORD
                : PolicyType.PASSWORD;
        setType(type);
    }
View Full Code Here

Examples of org.jboss.security.xacml.core.model.policy.PolicyType

   //Enable for request trace
   private boolean debug = "true".equals(System.getProperty("debug", "false"));

   public void testWebBinding() throws Exception
   {
      PolicyType policyType = constructPolicy();
      PolicyDecisionPoint pdp = new JBossPDP();

      XACMLPolicy policy = PolicyFactory.createPolicy(policyType);
      Set<XACMLPolicy> policies = new HashSet<XACMLPolicy>();
      policies.add(policy);
View Full Code Here

Examples of org.jboss.security.xacml.jaxb.PolicyType

        PDP pdp = new PDP();
        final PoliciesType policies = new PoliciesType();
        final PolicySetType policySet = new PolicySetType();
        policySet.setLocation(policiesPath + "/xacml-policySet.xml");
        for (short i = 2; i <= 5; i++) {
            final PolicyType policy = new PolicyType();
            policy.setLocation(policiesPath + "/xacml-policy" + i + ".xml");
            policySet.getPolicy().add(policy);
        }
        policies.getPolicySet().add(policySet);
        pdp.setPolicies(policies);
        final LocatorType locator = new LocatorType();
View Full Code Here

Examples of org.jclouds.elb.domain.PolicyType

public class GetPolicyTypeResponseTest extends BaseHandlerTest {

   public void test() {
      InputStream is = getClass().getResourceAsStream("/describe_policy_type.xml");

      PolicyType expected = expected();

      PolicyTypeHandler handler = injector.getInstance(PolicyTypeHandler.class);
      PolicyType result = factory.create(handler).parse(is);

      assertEquals(result, expected);
   }
View Full Code Here

Examples of org.jclouds.elb.domain.PolicyType

      for (PolicyType policyType : response) {
         checkPolicyType(policyType);
      }

      if (response.size() > 0) {
         PolicyType policyType = response.iterator().next();
         Assert.assertEquals(api().getType(policyType.getName()), policyType);
      }

      if (response.size() > 0) {
         Iterable<String> names = Iterables.transform(response, new Function<PolicyType, String>() {
View Full Code Here

Examples of org.opensaml.xacml.policy.PolicyType

        super();
    }

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        PolicyType policy = (PolicyType) xmlObject;

        if (attribute.getLocalName().equals(PolicyType.POLICY_ID_ATTRIB_NAME)) {
            policy.setPolicyId(attribute.getValue());
        } else if (attribute.getLocalName().equals(PolicyType.VERSION_ATTRIB_NAME)) {
            policy.setVersion(attribute.getValue());
        } else if (attribute.getLocalName().equals(PolicyType.RULE_COMBINING_ALG_ID_ATTRIB_NAME)) {
            policy.setRuleCombiningAlgoId(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.