Class SecurityAnnotator

java.lang.Object
com.sun.xml.wss.impl.SecurityAnnotator

public final 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:
  • Method Details

    • 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 DynamicSecurityPolicy can inturn resolve to the following:
      • 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