| |
|
| com.sun.xml.wss.XWSSProcessor
All known Subclasses: com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl,
XWSSProcessor | public interface XWSSProcessor (Code) | | XWSSProcessor interface defines methods for
- Securing an outbound
SOAPMessage
- Verifying the security in an inbound
SOAPMessage
An XWSSProcessor can add/verify Security in a
SOAPMessage as defined by the OASIS WSS 1.0 specification.
|
Method Summary | |
public ProcessingContext | createProcessingContext(SOAPMessage msg) | public SOAPMessage | secureOutboundMessage(ProcessingContext messageCntxt) Adds Security to an outbound SOAPMessage according to
the Security Policy inferred from the SecurityConfiguration
with which this XWSSProcessor was initialized. | public SOAPMessage | verifyInboundMessage(ProcessingContext messageCntxt) Verifies Security in an inbound SOAPMessage according to
the Security Policy inferred from the SecurityConfiguration
with which this XWSSProcessor was initialized.
Parameters: messageCntxt - the SOAP ProcessingContext containing the outgoing SOAPMessage to be secured the resultant SOAPMessage after successfulverification of security in the message exception: XWSSecurityException - if there was an unexpected error while verifying the message.OR if the security in the incoming message violates the Security policy that was applied to the message. exception: WssSoapFaultException - when security in the incoming messageis in direct violation of the OASIS WSS specification. |
createProcessingContext | public ProcessingContext createProcessingContext(SOAPMessage msg) throws XWSSecurityException(Code) | | Create a Processing Context initialized with the given SOAPMessage
Parameters: msg - the SOAPMessage with which to initialize the ProcessingContext A ProcessingContext instance. |
secureOutboundMessage | public SOAPMessage secureOutboundMessage(ProcessingContext messageCntxt) throws XWSSecurityException(Code) | | Adds Security to an outbound SOAPMessage according to
the Security Policy inferred from the SecurityConfiguration
with which this XWSSProcessor was initialized.
Parameters: messageCntxt - the SOAP ProcessingContext containing the outgoing SOAPMessage to be secured the resultant Secure SOAPMessage exception: XWSSecurityException - if there was an error in securing the message. |
verifyInboundMessage | public SOAPMessage verifyInboundMessage(ProcessingContext messageCntxt) throws XWSSecurityException(Code) | | Verifies Security in an inbound SOAPMessage according to
the Security Policy inferred from the SecurityConfiguration
with which this XWSSProcessor was initialized.
Parameters: messageCntxt - the SOAP ProcessingContext containing the outgoing SOAPMessage to be secured the resultant SOAPMessage after successfulverification of security in the message exception: XWSSecurityException - if there was an unexpected error while verifying the message.OR if the security in the incoming message violates the Security policy that was applied to the message. exception: WssSoapFaultException - when security in the incoming messageis in direct violation of the OASIS WSS specification. When a WssSoapFaultException is thrown the getFaultCode() method on itwill return a QName which would correspond to the WSS defined fault. |
|
|
|