org.apache.rampart.policy
Class RampartPolicyBuilder

java.lang.Object
  extended by org.apache.rampart.policy.RampartPolicyBuilder

public class RampartPolicyBuilder
extends java.lang.Object


Constructor Summary
RampartPolicyBuilder()
           
 
Method Summary
static RampartPolicyData build(java.util.List topLevelAssertions)
          Compile the parsed security data into one Policy data block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RampartPolicyBuilder

public RampartPolicyBuilder()
Method Detail

build

public static RampartPolicyData build(java.util.List topLevelAssertions)
                               throws org.apache.ws.secpolicy.WSSPolicyException
Compile the parsed security data into one Policy data block. This methods loops over all top level Policy Engine data elements, extracts the parsed parameters and sets them into a single data block. During this processing the method prepares the parameters in a format that is ready for processing by the WSS4J functions.

The WSS4J policy enabled handler takes this data block to control the setup of the security header.

Parameters:
topLevelAssertions - The iterator of the top level policy assertions
Returns:
The compile Poilcy data block.
Throws:
org.apache.ws.secpolicy.WSSPolicyException