Package com.sun.xml.wss
Interface XWSSProcessor
-
- All Known Implementing Classes:
XWSSProcessor2_0Impl
public interface XWSSProcessorXWSSProcessorinterface defines methods for- Securing an outbound
SOAPMessage - Verifying the security in an inbound
SOAPMessage
XWSSProcessorcan add/verify Security in aSOAPMessageas defined by the OASIS WSS 1.0 specification.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessingContextcreateProcessingContext(javax.xml.soap.SOAPMessage msg)Create a Processing Context initialized with the given SOAPMessagejavax.xml.soap.SOAPMessagesecureOutboundMessage(ProcessingContext messageCntxt)Adds Security to an outboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.javax.xml.soap.SOAPMessageverifyInboundMessage(ProcessingContext messageCntxt)Verifies Security in an inboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.
-
-
-
Method Detail
-
secureOutboundMessage
javax.xml.soap.SOAPMessage secureOutboundMessage(ProcessingContext messageCntxt) throws com.sun.xml.wss.XWSSecurityException
Adds Security to an outboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.- Parameters:
messageCntxt- the SOAPProcessingContextcontaining the outgoingSOAPMessageto be secured- Returns:
- the resultant Secure
SOAPMessage - Throws:
com.sun.xml.wss.XWSSecurityException- if there was an error in securing the message.
-
verifyInboundMessage
javax.xml.soap.SOAPMessage verifyInboundMessage(ProcessingContext messageCntxt) throws com.sun.xml.wss.XWSSecurityException
Verifies Security in an inboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.- Parameters:
messageCntxt- the SOAPProcessingContextcontaining the outgoingSOAPMessageto be secured- Returns:
- the resultant
SOAPMessageafter successful verification of security in the message - Throws:
com.sun.xml.wss.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.WssSoapFaultException- when security in the incoming message is in direct violation of the OASIS WSS specification. When a WssSoapFaultException is thrown the getFaultCode() method on it will return aQNamewhich would correspond to the WSS defined fault.
-
createProcessingContext
ProcessingContext createProcessingContext(javax.xml.soap.SOAPMessage msg) throws com.sun.xml.wss.XWSSecurityException
Create a Processing Context initialized with the given SOAPMessage- Parameters:
msg- the SOAPMessage with which to initialize the ProcessingContext- Returns:
- A ProcessingContext instance.
- Throws:
com.sun.xml.wss.XWSSecurityException
-
-