You need to implement org.apache.rampart.PolicyValidatorCallbackHandler interface and add the following configuration to your service policy - RampartConfig.
This PolicyValidatorCallbackHandler interface allows different implementations of policy based results validation. Default implementation is org.apache.rampart.PolicyBasedResultsValidator.
<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy">
<ramp:policyValidatorCbClass>my.CustomPolicyValidator</ramp:policyValidatorCbClass>
</ramp:RampartConfig>
It's always recommended that you use the default PolicyBasedResultsValidator - if you do not have a very specific custom requirement.
0 comments:
Post a Comment