com.sun.xml.wss.impl
Class SecurityAnnotator

java.lang.Object
  extended by 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
SecurityAnnotator()
           
 
Method Summary
static void handleFault(ProcessingContext context)
           
static void secureMessage(ProcessingContext context)
          Secure an Outbound SOAP Message.
static FilterProcessingContext setFilterProcessingContext(ProcessingContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityAnnotator

public SecurityAnnotator()
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 DynamicSecurityPolicy can inturn resolve to the following:

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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.