Package com.sun.xml.wss.impl
Class SecurityAnnotator
- java.lang.Object
-
- com.sun.xml.wss.impl.SecurityAnnotator
-
public class SecurityAnnotator extends Object
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:
ProcessingContext
-
-
Constructor Summary
Constructors Constructor Description SecurityAnnotator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
handleFault(ProcessingContext context)
static void
secureMessage(ProcessingContext context)
Secure an Outbound SOAP Message.static FilterProcessingContext
setFilterProcessingContext(ProcessingContext context)
-
-
-
Method Detail
-
secureMessage
public static void secureMessage(ProcessingContext context) throws XWSSecurityException
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
public static void handleFault(ProcessingContext context)
-
setFilterProcessingContext
public static FilterProcessingContext setFilterProcessingContext(ProcessingContext context) throws XWSSecurityException
- Throws:
XWSSecurityException
-
-