Package com.sun.xml.wss.impl.misc
Class XWSSProcessor2_0Impl
- 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 protected
XWSSProcessor2_0Impl(InputStream securityConfig)
protected
XWSSProcessor2_0Impl(InputStream securityConfig, CallbackHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessingContext
createProcessingContext(jakarta.xml.soap.SOAPMessage msg)
Create a Processing Context initialized with the given SOAPMessagejakarta.xml.soap.SOAPMessage
secureOutboundMessage(ProcessingContext context)
Adds Security to an outboundSOAPMessage
according to the Security Policy inferred from theSecurityConfiguration
with which thisXWSSProcessor
was initialized.jakarta.xml.soap.SOAPMessage
verifyInboundMessage(ProcessingContext context)
Verifies Security in an inboundSOAPMessage
according to the Security Policy inferred from theSecurityConfiguration
with which thisXWSSProcessor
was 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:XWSSProcessor
Adds Security to an outboundSOAPMessage
according to the Security Policy inferred from theSecurityConfiguration
with which thisXWSSProcessor
was initialized.- Specified by:
secureOutboundMessage
in interfaceXWSSProcessor
- Parameters:
context
- the SOAPProcessingContext
containing the outgoingSOAPMessage
to 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:XWSSProcessor
Verifies Security in an inboundSOAPMessage
according to the Security Policy inferred from theSecurityConfiguration
with which thisXWSSProcessor
was initialized.- Specified by:
verifyInboundMessage
in interfaceXWSSProcessor
- Parameters:
context
- the SOAPProcessingContext
containing the outgoingSOAPMessage
to be secured- Returns:
- the resultant
SOAPMessage
after 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:XWSSProcessor
Create a Processing Context initialized with the given SOAPMessage- Specified by:
createProcessingContext
in interfaceXWSSProcessor
- Parameters:
msg
- the SOAPMessage with which to initialize the ProcessingContext- Returns:
- A ProcessingContext instance.
- Throws:
XWSSecurityException
-
-