Package org.apache.ws.policy

Examples of org.apache.ws.policy.Assertion


             * can be fulfilled then we choose this alternative and signal a
             * success.
             */
            boolean all = true;
            while (all && iterator.hasNext()) {
                Assertion assertion = (Assertion) iterator.next();

                /*
                 * At this point we expect PrimitiveAssertions only.
                 */
                if (!(assertion instanceof PrimitiveAssertion)) {
                    log.debug("Got a unexpected assertion type: "
                            + assertion.getClass().getName());
                    continue;
                }
                /*
                 * We need to pick only the primitive assertions which contain a
                 * WSSecurityPolicy policy assertion. For that we'll check the
View Full Code Here


        commit = startPolicyTransaction(pa);

        List terms = pa.getTerms();
        if (commit && terms.size() > 0) {
            for (int i = 0; commit && i < terms.size(); i++) {
                Assertion assertion = (Assertion) pa.getTerms().get(i);
                if (assertion instanceof Policy) {
                    commit = processPolicy((Policy) assertion);
                } else if (assertion instanceof PrimitiveAssertion) {
                    commit = processPrimitiveAssertion((PrimitiveAssertion) assertion);
                }
View Full Code Here

       * can be fulfilled then we choose this alternative and signal a
       * success.
       */
      boolean all = true;
      while (all && iterator.hasNext()) {
        Assertion assertion = (Assertion) iterator.next();

        /*
         * At this point we expect PrimitiveAssertions only.
         */
        if (!(assertion instanceof PrimitiveAssertion)) {
          logger.debug("Got a unexpected assertion type: "
              + assertion.getClass().getName());
          continue;
        }
        /*
         * We need to pick only the primitive assertions which contain a
         * v1_0 policy assertion. For that we'll check the namespace of
View Full Code Here

    commit = startPolicyTransaction(pa);

    List terms = pa.getTerms();
    if (commit && terms.size() > 0) {
      for (int i = 0; commit && i < terms.size(); i++) {
        Assertion assertion = (Assertion) pa.getTerms().get(i);
        if (assertion instanceof Policy) {
          commit = processPolicy((Policy) assertion);
        } else if (assertion instanceof PrimitiveAssertion) {
          commit = processPrimitiveAssertion((PrimitiveAssertion) assertion);
        }
View Full Code Here

             * can be fulfilled then we choose this alternative and signal a
             * success.
             */
            boolean all = true;
            while (all && iterator.hasNext()) {
                Assertion assertion = (Assertion) iterator.next();

                /*
                 * At this point we expect PrimitiveAssertions only.
                 */
                if (!(assertion instanceof PrimitiveAssertion)) {
                    log.debug("Got a unexpected assertion type: "
                            + assertion.getClass().getName());
                    continue;
                }
                /*
                 * We need to pick only the primitive assertions which contain a
                 * WSSecurityPolicy policy assertion. For that we'll check the
View Full Code Here

        commit = startPolicyTransaction(pa);

        List terms = pa.getTerms();
        if (commit && terms.size() > 0) {
            for (int i = 0; commit && i < terms.size(); i++) {
                Assertion assertion = (Assertion) pa.getTerms().get(i);
                if (assertion instanceof Policy) {
                    commit = processPolicy((Policy) assertion);
                } else if (assertion instanceof PrimitiveAssertion) {
                    commit = processPrimitiveAssertion((PrimitiveAssertion) assertion);
                }
View Full Code Here

   {

      Iterator iterator = terms.iterator();
      while (iterator.hasNext())
      {
         Assertion assertion = (Assertion)iterator.next();
         writePrimitiveAssertion((PrimitiveAssertion) assertion, writer);
      }
   }
View Full Code Here

        }

        ArrayList policies = new ArrayList();

        // wsdl:port
        Assertion epPolicy = getPolicyFromComponent(endpoint);
        if (epPolicy != null) {
            policies.add(getPolicyFromComponent(endpoint));
        }

        //wsdl:binding
        WSDLBinding wsdlBinding = endpoint.getBinding();
        Assertion wsdlBindingPolicy = getPolicyFromComponent(wsdlBinding);
        if (wsdlBindingPolicy != null) {
            policies.add(getPolicyFromComponent(wsdlBinding));
        }

        //wsdl:portType
        WSDLInterface wsdlInterface = wsdlBinding.getBoundInterface();
        Assertion portTypePolicy = getPolicyFromComponent(wsdlInterface);
        if (portTypePolicy != null) {
            policies.add(getPolicyFromComponent(wsdlInterface));
        }

        return getSinglePolicy(policies);
View Full Code Here

        //wsdl:binding/wsdl:operation
        WSDLBinding binding = endPoint.getBinding();
        WSDLBindingOperation bindingOperation = (WSDLBindingOperation) binding
                .getBindingOperations().get(oqname);

        Assertion bindingPolicy = getPolicyFromComponent(bindingOperation);
        if (bindingPolicy != null) {
            list.add(bindingPolicy);
        }

        // wsdl:portType/wsdl:operation
        WSDLOperation wsdlOperation = bindingOperation.getOperation();
        Assertion interfacePolicy = getPolicyFromComponent(wsdlOperation);

        if (interfacePolicy != null) {
            list.add(interfacePolicy);

        }
View Full Code Here

    if (arg1.size() != arg2.size()) {
      return false;
    }
   
    Iterator iterator = arg1.iterator();
    Assertion assertion1;

    while (iterator.hasNext()) {
      assertion1 = (Assertion) iterator.next();

      Iterator iterator2 = arg2.iterator();
      boolean match = false;
      Assertion assertion2;

      while (iterator2.hasNext()) {
        assertion2 = (Assertion) iterator2.next();
        if (compare(assertion1, assertion2)) {
          match = true;
View Full Code Here

TOP

Related Classes of org.apache.ws.policy.Assertion

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.