Class XWSSProcessor2_0Impl

    • Method Detail

      • secureOutboundMessage

        public jakarta.xml.soap.SOAPMessage secureOutboundMessage​(ProcessingContext context)
                                                           throws XWSSecurityException
        Description copied from interface: XWSSProcessor
        Adds Security to an outbound SOAPMessage according to the Security Policy inferred from the SecurityConfiguration with which this XWSSProcessor was initialized.
        Specified by:
        secureOutboundMessage in interface XWSSProcessor
        Parameters:
        context - the SOAP ProcessingContext containing the outgoing SOAPMessage 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 inbound SOAPMessage according to the Security Policy inferred from the SecurityConfiguration with which this XWSSProcessor was initialized.
        Specified by:
        verifyInboundMessage in interface XWSSProcessor
        Parameters:
        context - the SOAP ProcessingContext containing the outgoing SOAPMessage 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.