java.lang.Object
com.sun.xml.wss.impl.SecurityAnnotator
This class exports a static Security Service for Securing an Outbound SOAPMessage.
The policy to be applied for Securing the Message and the SOAPMessage itself are
supplied in an instance of a com.sun.xml.wss.ProcessingContext
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleFault(ProcessingContext context) static voidsecureMessage(ProcessingContext context) Secure an Outbound SOAP Message.static FilterProcessingContext
-
Method Details
-
secureMessage
Secure an Outbound SOAP Message.Calling code should create a com.sun.xml.wss.ProcessingContext object with runtime properties. Specifically, it should set SecurityPolicy, application CallbackHandler Or a SecurityEnvironment and static security policy context. The SecurityPolicy instance can be of the following types:
- A concrete WSSPolicy
- A MessagePolicy
- A DynamicSecurityPolicy
- A concrete WSSPolicy
- A MessagePolicy
- Parameters:
context- an instance of com.sun.xml.wss.ProcessingContext- Throws:
XWSSecurityException- if there was an error in securing the Outbound SOAPMessage
-
handleFault
-
setFilterProcessingContext
public static FilterProcessingContext setFilterProcessingContext(ProcessingContext context) throws XWSSecurityException - Throws:
XWSSecurityException
-