- java.lang.Object
-
- com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl
-
- All Implemented Interfaces:
XWSSProcessor
public class XWSSProcessor2_0Impl extends Object implements XWSSProcessor
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXWSSProcessor2_0Impl(InputStream securityConfig)protectedXWSSProcessor2_0Impl(InputStream securityConfig, CallbackHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessingContextcreateProcessingContext(jakarta.xml.soap.SOAPMessage msg)Create a Processing Context initialized with the given SOAPMessagejakarta.xml.soap.SOAPMessagesecureOutboundMessage(ProcessingContext context)Adds Security to an outboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.jakarta.xml.soap.SOAPMessageverifyInboundMessage(ProcessingContext context)Verifies Security in an inboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.
-
-
-
Constructor Detail
-
XWSSProcessor2_0Impl
protected XWSSProcessor2_0Impl(InputStream securityConfig, CallbackHandler handler) throws XWSSecurityException
- Throws:
XWSSecurityException
-
XWSSProcessor2_0Impl
protected XWSSProcessor2_0Impl(InputStream securityConfig) throws XWSSecurityException
- Throws:
XWSSecurityException
-
-
Method Detail
-
secureOutboundMessage
public jakarta.xml.soap.SOAPMessage secureOutboundMessage(ProcessingContext context) throws XWSSecurityException
Description copied from interface:XWSSProcessorAdds Security to an outboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.- Specified by:
secureOutboundMessagein interfaceXWSSProcessor- Parameters:
context- the SOAPProcessingContextcontaining the outgoingSOAPMessageto be secured- Returns:
- the resultant Secure
SOAPMessage - Throws:
XWSSecurityException- if there was an error in securing the message.
-
verifyInboundMessage
public jakarta.xml.soap.SOAPMessage verifyInboundMessage(ProcessingContext context) throws XWSSecurityException
Description copied from interface:XWSSProcessorVerifies Security in an inboundSOAPMessageaccording to the Security Policy inferred from theSecurityConfigurationwith which thisXWSSProcessorwas initialized.- Specified by:
verifyInboundMessagein interfaceXWSSProcessor- Parameters:
context- the SOAPProcessingContextcontaining the outgoingSOAPMessageto be secured- Returns:
- the resultant
SOAPMessageafter successful verification of security in the message - Throws:
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.
-
createProcessingContext
public ProcessingContext createProcessingContext(jakarta.xml.soap.SOAPMessage msg) throws XWSSecurityException
Description copied from interface:XWSSProcessorCreate a Processing Context initialized with the given SOAPMessage- Specified by:
createProcessingContextin interfaceXWSSProcessor- Parameters:
msg- the SOAPMessage with which to initialize the ProcessingContext- Returns:
- A ProcessingContext instance.
- Throws:
XWSSecurityException
-
-