| Validate security in an Inbound SOAPMessage.
Calling code should create com.sun.xml.wss.ProcessingContext object with
runtime properties. Specifically, it should set SecurityPolicy, application
CallbackHandler Or a SecurityEnvironment
The SecurityPolicy instance can be of the following types:
Parameters: context - an instance of com.sun.xml.wss.ProcessingContext exception: com.sun.xml.wss.XWSSecurityException - if there was an unexpected errorwhile verifying the message. OR if the security in the incomingmessage violates the Security policy that was applied to the message. exception: WssSoapFaultException - when security in the incoming messageis in direct violation of the OASIS WSS specification.When a WssSoapFaultException is thrown the getFaultCode() method on the WssSoapFaultExceptionwill return a QName which would correspond to the WSS defined fault. |