Examples of AbstractSecurityAssertion


Examples of org.apache.ws.secpolicy.model.AbstractSecurityAssertion

      try {
        out = new ByteArrayOutputStream();
        //XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
        XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(out);
        //this.symBind.serialize(writer);
        AbstractSecurityAssertion a = (AbstractSecurityAssertion) assertionSet.next();
        a.serialize(writer);
        writer.flush();
        writer.close();
        /*
                String tempPrefix1="",tempPrefix2="";
                boolean isNewConfig =(Boolean) hasConfigIterator.next();
View Full Code Here

Examples of org.apache.ws.secpolicy.model.AbstractSecurityAssertion

      try {
        out = new ByteArrayOutputStream();
        //XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
        XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(out);
        //this.symBind.serialize(writer);
        AbstractSecurityAssertion a = (AbstractSecurityAssertion) assertionSet.next();
        a.serialize(writer);
        writer.flush();
        writer.close();
        String tempPrefix1 = "", tempPrefix2 = "";

        //System.out.println(out);
View Full Code Here

Examples of org.apache.ws.secpolicy.model.AbstractSecurityAssertion

  public void serialize() {
    initConfigs.serialize(System.out);
  }

  private void doBehaviorLoad() throws BehaviorLoadFault, AssertionLoadFault {
    AbstractSecurityAssertion assertion;
    assertion = getAssertion(getCurrentAssertionName(), getCurrentAssertionParam());
    if (assertion != null) {
      PolicyBehavior temp = getBehavior(getCurrentBehaviorName(), assertion);
      if (log.isDebugEnabled()) {
        log.debug("Assertion found :" + getCurrentAssertionName() + " ; class:" + assertion.getClass().getName());
      }
      //  System.out.println("Assertion found :"+getCurrentAssertionName()+" ; class:"+assertion.getClass().getName());
      if (temp != null) {
        currentAssertion = assertion;
        currentBehavior = temp;
View Full Code Here

Examples of org.apache.ws.secpolicy.model.AbstractSecurityAssertion

    }
    return pb;
  }

  private AbstractSecurityAssertion getAssertion(String assertionName, String assertionParam) {
    AbstractSecurityAssertion assertion = null;
    if (assertionParam == null && assertionName != null) {
      String[] assertID = assertionName.split(":");
      if (assertID[0] != null)
        if (log.isDebugEnabled()) {
          log.debug(assertID[0] + "------");
View Full Code Here

Examples of org.apache.wss4j.policy.model.AbstractSecurityAssertion

            while (policyComponentIterator.hasNext()) {
                PolicyComponent curPolicyComponent = policyComponentIterator.next();
                buildAssertionStateMap(curPolicyComponent, assertionStateMap, alternative);
            }
        } else if (policyComponent instanceof AbstractSecurityAssertion) {
            AbstractSecurityAssertion abstractSecurityAssertion = (AbstractSecurityAssertion) policyComponent;

            List<Assertable> assertablesList = getAssertableForAssertion(abstractSecurityAssertion);
            Iterator<Assertable> assertableIterator = assertablesList.iterator();
            while (assertableIterator.hasNext()) {
                Assertable assertable = assertableIterator.next();
View Full Code Here

Examples of org.apache.wss4j.policy.model.AbstractSecurityAssertion

                        boolean doAssert = false;
                        if (assertable instanceof TokenAssertionState) {
                            TokenAssertionState tokenAssertionState = (TokenAssertionState) assertable;
                            AbstractToken abstractToken = (AbstractToken) tokenAssertionState.getAssertion();
                            AbstractSecurityAssertion assertion = abstractToken.getParentAssertion();
                            //Other tokens may not be resolved yet fully therefore we skip it here
                            if (assertion instanceof SupportingTokens ||
                                    assertable instanceof HttpsTokenAssertionState ||
                                    assertable instanceof RelTokenAssertionState ||
                                    assertable instanceof SecurityContextTokenAssertionState ||
View Full Code Here

Examples of org.apache.wss4j.policy.model.AbstractSecurityAssertion

            while (policyComponentIterator.hasNext()) {
                PolicyComponent curPolicyComponent = policyComponentIterator.next();
                buildAssertionStateMap(curPolicyComponent, assertionStateMap, alternative);
            }
        } else if (policyComponent instanceof AbstractSecurityAssertion) {
            AbstractSecurityAssertion abstractSecurityAssertion = (AbstractSecurityAssertion) policyComponent;

            List<Assertable> assertablesList = getAssertableForAssertion(abstractSecurityAssertion);
            Iterator<Assertable> assertableIterator = assertablesList.iterator();
            while (assertableIterator.hasNext()) {
                Assertable assertable = assertableIterator.next();
View Full Code Here

Examples of org.apache.wss4j.policy.model.AbstractSecurityAssertion

                        boolean doAssert = false;
                        if (assertable instanceof TokenAssertionState) {
                            TokenAssertionState tokenAssertionState = (TokenAssertionState) assertable;
                            AbstractToken abstractToken = (AbstractToken) tokenAssertionState.getAssertion();
                            AbstractSecurityAssertion assertion = abstractToken.getParentAssertion();
                            //Other tokens may not be resolved yet fully therefore we skip it here
                            if (assertion instanceof SupportingTokens ||
                                    assertable instanceof HttpsTokenAssertionState ||
                                    assertable instanceof RelTokenAssertionState ||
                                    assertable instanceof SecurityContextTokenAssertionState ||
View Full Code Here

Examples of org.apache.wss4j.policy.model.AbstractSecurityAssertion

            while (policyComponentIterator.hasNext()) {
                PolicyComponent curPolicyComponent = policyComponentIterator.next();
                buildAssertionStateMap(curPolicyComponent, assertionStateMap, alternative);
            }
        } else if (policyComponent instanceof AbstractSecurityAssertion) {
            AbstractSecurityAssertion abstractSecurityAssertion = (AbstractSecurityAssertion) policyComponent;

            List<Assertable> assertablesList = getAssertableForAssertion(abstractSecurityAssertion);
            Iterator<Assertable> assertableIterator = assertablesList.iterator();
            while (assertableIterator.hasNext()) {
                Assertable assertable = assertableIterator.next();
View Full Code Here

Examples of org.apache.wss4j.policy.model.AbstractSecurityAssertion

                        boolean doAssert = false;
                        if (assertable instanceof TokenAssertionState) {
                            TokenAssertionState tokenAssertionState = (TokenAssertionState) assertable;
                            AbstractToken abstractToken = (AbstractToken) tokenAssertionState.getAssertion();
                            AbstractSecurityAssertion assertion = abstractToken.getParentAssertion();
                            //Other tokens may not be resolved yet fully therefore we skip it here
                            if (assertion instanceof SupportingTokens ||
                                    assertable instanceof HttpsTokenAssertionState ||
                                    assertable instanceof RelTokenAssertionState ||
                                    assertable instanceof SecurityContextTokenAssertionState ||
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.