Class OutboundWSSec

java.lang.Object
org.apache.wss4j.stax.setup.OutboundWSSec

public class OutboundWSSec extends Object
Outbound Streaming-WebService-Security An instance of this class can be retrieved over the WSSec class
  • Constructor Details

  • Method Details

    • processOutMessage

      public XMLStreamWriter processOutMessage(OutputStream outputStream, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents) throws WSSecurityException
      This method is the entry point for the incoming security-engine. Hand over a outputStream and use the returned XMLStreamWriter for further processing
      Parameters:
      outputStream - The original outputStream
      Returns:
      A new XMLStreamWriter which does transparently the security processing.
      Throws:
      WSSecurityException - thrown when a Security failure occurs
    • processOutMessage

      public XMLStreamWriter processOutMessage(XMLStreamWriter xmlStreamWriter, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents) throws WSSecurityException
      This method is the entry point for the incoming security-engine. Hand over the original XMLStreamWriter and use the returned one for further processing
      Parameters:
      xmlStreamWriter - The original xmlStreamWriter
      Returns:
      A new XMLStreamWriter which does transparently the security processing.
      Throws:
      WSSecurityException - thrown when a Security failure occurs
    • processOutMessage

      public XMLStreamWriter processOutMessage(OutputStream outputStream, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents, org.apache.xml.security.stax.securityEvent.SecurityEventListener securityEventListener) throws WSSecurityException
      This method is the entry point for the incoming security-engine. Hand over a outputstream and use the returned XMLStreamWriter for further processing
      Parameters:
      outputStream - The original outputStream
      Returns:
      A new XMLStreamWriter which does transparently the security processing.
      Throws:
      WSSecurityException - thrown when a Security failure occurs
    • processOutMessage

      public XMLStreamWriter processOutMessage(XMLStreamWriter xmlStreamWriter, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents, org.apache.xml.security.stax.securityEvent.SecurityEventListener securityEventListener) throws WSSecurityException
      This method is the entry point for the incoming security-engine. Hand over the original XMLStreamWriter and use the returned one for further processing
      Parameters:
      xmlStreamWriter - The original outputStream
      Returns:
      A new XMLStreamWriter which does transparently the security processing.
      Throws:
      WSSecurityException - thrown when a Security failure occurs
    • processOutMessage

      public XMLStreamWriter processOutMessage(XMLStreamWriter xmlStreamWriter, String encoding, org.apache.xml.security.stax.ext.OutboundSecurityContext outbounSecurityContext) throws WSSecurityException
      This method is the entry point for the incoming security-engine. Hand over the original XMLStreamWriter and use the returned one for further processing
      Parameters:
      xmlStreamWriter - The original outputStream
      Returns:
      A new XMLStreamWriter which does transparently the security processing.
      Throws:
      WSSecurityException - thrown when a Security failure occurs
    • processOutMessage

      public XMLStreamWriter processOutMessage(Object output, String encoding, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext) throws WSSecurityException
      Throws:
      WSSecurityException