Package org.apache.ws.security.policy.model

Examples of org.apache.ws.security.policy.model.RootPolicyEngineData


        if (pedStackPointer > 2) {
            pedStackPointer--;
            PolicyEngineData ped = (PolicyEngineData) pedStack.get(pedStackPointer);
            return ped;
        } else if(pedStackPointer == 2) {
            RootPolicyEngineData rootData = (RootPolicyEngineData)this.pedStack.get(0);
            rootData.addTopLevelPED(readCurrentPolicyEngineData());
            pedStackPointer--;
            return (PolicyEngineData) pedStack.get(pedStackPointer);
        } else {
            return null;
        }
View Full Code Here


       
        /*
         * Now get the initial PolicyEngineData, initialize it and put it onto
         * the PED stack.
         */
        PolicyEngineData ped = new RootPolicyEngineData();
        ped.initializeWithDefaults();
       
        /*
         * Now get a context and push the top level token onto the token stack.
         * The top level token is a special token that acts as anchor to start
         * parsing.
 
View Full Code Here

      if (!processor.go(files)) {
          System.out.println("Cannot parse the policy files.");
                System.exit(1);
            }

      RootPolicyEngineData rootPolicyEngineData = (RootPolicyEngineData) processor.secProcessorContext
          .popPolicyEngineData();
      assertNotNull("RootPolicyEngineData missing", rootPolicyEngineData);

      ArrayList peds = rootPolicyEngineData.getTopLevelPEDs();
      log.debug("Number of top level PolicyEngineData: " + peds.size());
      WSS4JPolicyData wpd = WSS4JPolicyBuilder.build(peds);
      createMessageAsymm(wpd);

    } catch (NoSuchMethodException e) {
View Full Code Here

            String[] files = new String[2];
            files[0] = "test/policy/SecurityPolicyBindings.xml";
            files[1] = "test/policy/SecurityPolicyMsg.xml";
            processor.go(files);
           
            RootPolicyEngineData rootPolicyEngineData = (RootPolicyEngineData)processor.secProcessorContext.getPedStack().get(0);
            assertNotNull("RootPolicyEngineData missing", rootPolicyEngineData);
           
            ArrayList peds = rootPolicyEngineData.getTopLevelPEDs();
            assertEquals("Incrrect number of PolicyEngineData", 4, peds.size());
           
            Iterator pedIter = peds.iterator();
            boolean asymmBindingfound = false, wss11found = false, signedPartsFound = false, encryptedPartsFound = false;
            while (pedIter.hasNext()) {
View Full Code Here

            String[] files = new String[2];
            files[0] = "test/policy/SecurityPolicyBindingsSymm.xml";
            files[1] = "test/policy/SecurityPolicyMsg.xml";
            processor.go(files);
           
            RootPolicyEngineData rootPolicyEngineData = (RootPolicyEngineData)processor.secProcessorContext.getPedStack().get(0);
            assertNotNull("RootPolicyEngineData missing", rootPolicyEngineData);
           
            ArrayList peds = rootPolicyEngineData.getTopLevelPEDs();
            assertEquals("Incrrect number of PolicyEngineData", 4, peds.size());
           
            Iterator pedIter = peds.iterator();
            boolean symmBindingfound = false, wss11found = false, signedPartsFound = false, encryptedPartsFound = false;
            while (pedIter.hasNext()) {
View Full Code Here

       
        /*
         * Now get the initial PolicyEngineData, initialize it and put it onto
         * the PED stack.
         */
        PolicyEngineData ped = new RootPolicyEngineData();
        ped.initializeWithDefaults();
       
        /*
         * Now get a context and push the top level token onto the token stack.
         * The top level token is a special token that acts as anchor to start
         * parsing.
 
View Full Code Here

TOP

Related Classes of org.apache.ws.security.policy.model.RootPolicyEngineData

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.