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)) {
          System.out.println("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

/*     */     throws XMLStreamException
/*     */   {
/* 101 */     Iterator iterator = terms.iterator();
/* 102 */     while (iterator.hasNext())
/*     */     {
/* 104 */       Assertion assertion = (Assertion)iterator.next();
/* 105 */       writePrimitiveAssertion((PrimitiveAssertion)assertion, writer);
/*     */     }
/*     */   }
View Full Code Here

          "Id", policy.getId());
    }

    Iterator iterator = policy.getTerms().iterator();
    while (iterator.hasNext()) {
      Assertion term = (Assertion) iterator.next();
      writeAssertion(term, writer);
    }

    writer.writeEndElement();
  }
View Full Code Here

  private void writeTerms(List terms, XMLStreamWriter writer)
      throws XMLStreamException {

    Iterator iterator = terms.iterator();
    while (iterator.hasNext()) {
      Assertion assertion = (Assertion) iterator.next();
      writeAssertion(assertion, writer);
    }
  }
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

       * 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)) {
          System.out.println("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

          "Id", policy.getId());
    }

    Iterator iterator = policy.getTerms().iterator();
    while (iterator.hasNext()) {
      Assertion term = (Assertion) iterator.next();
      writeAssertion(term, writer);
    }

    writer.writeEndElement();
  }
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.