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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityAnnotator
public SecurityAnnotator()
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
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.