org.apache.wss4j.stax.ext
Class OutboundWSSec

java.lang.Object
  extended by org.apache.wss4j.stax.ext.OutboundWSSec

public class OutboundWSSec
extends Object

Outbound Streaming-WebService-Security An instance of this class can be retrieved over the WSSec class


Constructor Summary
OutboundWSSec(WSSSecurityProperties securityProperties)
           
 
Method Summary
 XMLStreamWriter processOutMessage(Object output, String encoding, org.apache.xml.security.stax.ext.OutboundSecurityContext outboundSecurityContext)
           
 XMLStreamWriter processOutMessage(OutputStream outputStream, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents)
          This method is the entry point for the incoming security-engine.
 XMLStreamWriter processOutMessage(OutputStream outputStream, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents, org.apache.xml.security.stax.securityEvent.SecurityEventListener securityEventListener)
          This method is the entry point for the incoming security-engine.
 XMLStreamWriter processOutMessage(XMLStreamWriter xmlStreamWriter, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents)
          This method is the entry point for the incoming security-engine.
 XMLStreamWriter processOutMessage(XMLStreamWriter xmlStreamWriter, String encoding, List<org.apache.xml.security.stax.securityEvent.SecurityEvent> requestSecurityEvents, org.apache.xml.security.stax.securityEvent.SecurityEventListener securityEventListener)
          This method is the entry point for the incoming security-engine.
 XMLStreamWriter processOutMessage(XMLStreamWriter xmlStreamWriter, String encoding, org.apache.xml.security.stax.ext.OutboundSecurityContext outbounSecurityContext)
          This method is the entry point for the incoming security-engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutboundWSSec

public OutboundWSSec(WSSSecurityProperties securityProperties)
Method Detail

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


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.