org.apache.ws.security.policy.parser
Class WSSPolicyProcessor

java.lang.Object
  extended byorg.apache.ws.security.policy.parser.WSSPolicyProcessor

public class WSSPolicyProcessor
extends java.lang.Object

Author:
Werner Dittmann (werner@apache.org)

Field Summary
 SecurityProcessorContext secProcessorContext
           
 
Constructor Summary
WSSPolicyProcessor()
           
 
Method Summary
 void abortPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)
           
 void commitPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)
           
 boolean go(java.lang.String[] args)
           
 boolean processPolicy(org.apache.ws.policy.Policy policy)
          This method takes a normalized policy object, processes it and returns true if all assertion can be fulfilled.
 boolean setup()
           
 boolean startPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

secProcessorContext

public SecurityProcessorContext secProcessorContext
Constructor Detail

WSSPolicyProcessor

public WSSPolicyProcessor()
Method Detail

setup

public boolean setup()
              throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

go

public boolean go(java.lang.String[] args)

processPolicy

public boolean processPolicy(org.apache.ws.policy.Policy policy)
This method takes a normalized policy object, processes it and returns true if all assertion can be fulfilled. Each policy must be nromalized accordig to the WS Policy framework specification. Therefore a policy has one child (wsp:ExactlyOne) that is a XorCompositeAssertion. This child may contain one or more other terms (alternatives). To match the policy one of these terms (alternatives) must match. If none of the contained terms match this policy cannot be enforced.

Parameters:
policy - The policy to process
Returns:
True if this policy can be enforced by the policy enforcement implmentation

startPolicyTransaction

public boolean startPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)

abortPolicyTransaction

public void abortPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)

commitPolicyTransaction

public void commitPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.