Class XWSSProcessor2_0Impl

    • Constructor Detail

      • XWSSProcessor2_0Impl

        protected XWSSProcessor2_0Impl​(InputStream securityConfig,
                                       CallbackHandler handler)
                                throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • XWSSProcessor2_0Impl

        protected XWSSProcessor2_0Impl​(InputStream securityConfig)
                                throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
    • Method Detail

      • secureOutboundMessage

        public jakarta.xml.soap.SOAPMessage secureOutboundMessage​(ProcessingContext context)
                                                           throws com.sun.xml.wss.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:
        com.sun.xml.wss.XWSSecurityException - if there was an error in securing the message.
      • verifyInboundMessage

        public jakarta.xml.soap.SOAPMessage verifyInboundMessage​(ProcessingContext context)
                                                          throws com.sun.xml.wss.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:
        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.
      • createProcessingContext

        public ProcessingContext createProcessingContext​(jakarta.xml.soap.SOAPMessage msg)
                                                  throws com.sun.xml.wss.XWSSecurityException
        Description copied from interface: XWSSProcessor
        Create a Processing Context initialized with the given SOAPMessage
        Specified by:
        createProcessingContext in interface XWSSProcessor
        Parameters:
        msg - the SOAPMessage with which to initialize the ProcessingContext
        Returns:
        A ProcessingContext instance.
        Throws:
        com.sun.xml.wss.XWSSecurityException