public class NewSecurityRecipient extends Object
ProcessingContext| Constructor and Description |
|---|
NewSecurityRecipient() |
| Modifier and Type | Method and Description |
|---|---|
static void |
handleFault(ProcessingContext context) |
static void |
validateMessage(ProcessingContext context)
Validate security in an Inbound SOAPMessage.
|
public static void validateMessage(ProcessingContext context) throws XWSSecurityException
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:
context - an instance of com.sun.xml.wss.ProcessingContextXWSSecurityException - if there was an unexpected error
while verifying the message. OR if the security in the incoming
message violates the Security policy that was applied to the message.WssSoapFaultException - when security in the incoming message
is in direct violation of the OASIS WSS specification.
When a WssSoapFaultException is thrown the getFaultCode() method on the WssSoapFaultException
will return a QName which would correspond to the WSS defined fault.public static void handleFault(ProcessingContext context)
Copyright © 2005–2018 Oracle Corporation. All rights reserved.