Package org.apache.xml.security.stax.ext
Class OutboundXMLSec
- java.lang.Object
-
- org.apache.xml.security.stax.ext.OutboundXMLSec
-
public class OutboundXMLSec extends java.lang.Object
Outbound Streaming-XML-Security An instance of this class can be retrieved over the XMLSec class
-
-
Field Summary
Fields Modifier and Type Field Description private XMLSecurityProperties
securityProperties
-
Constructor Summary
Constructors Constructor Description OutboundXMLSec(XMLSecurityProperties securityProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
configureEncryptionKeys(OutboundSecurityContextImpl outboundSecurityContext)
private void
configureSignatureKeys(OutboundSecurityContextImpl outboundSecurityContext)
private void
initializeOutputProcessor(OutputProcessorChainImpl outputProcessorChain, OutputProcessor outputProcessor, XMLSecurityConstants.Action action)
javax.xml.stream.XMLStreamWriter
processOutMessage(java.io.OutputStream outputStream, java.lang.String encoding)
This method is the entry point for the incoming security-engine.javax.xml.stream.XMLStreamWriter
processOutMessage(java.io.OutputStream outputStream, java.lang.String encoding, SecurityEventListener eventListener)
private javax.xml.stream.XMLStreamWriter
processOutMessage(java.lang.Object output, java.lang.String encoding, SecurityEventListener eventListener)
javax.xml.stream.XMLStreamWriter
processOutMessage(javax.xml.stream.XMLStreamWriter xmlStreamWriter, java.lang.String encoding)
This method is the entry point for the incoming security-engine.javax.xml.stream.XMLStreamWriter
processOutMessage(javax.xml.stream.XMLStreamWriter xmlStreamWriter, java.lang.String encoding, SecurityEventListener eventListener)
-
-
-
Field Detail
-
securityProperties
private final XMLSecurityProperties securityProperties
-
-
Constructor Detail
-
OutboundXMLSec
public OutboundXMLSec(XMLSecurityProperties securityProperties)
-
-
Method Detail
-
processOutMessage
public javax.xml.stream.XMLStreamWriter processOutMessage(java.io.OutputStream outputStream, java.lang.String encoding) throws XMLSecurityException
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:
XMLSecurityException
- thrown when a Security failure occurs
-
processOutMessage
public javax.xml.stream.XMLStreamWriter processOutMessage(javax.xml.stream.XMLStreamWriter xmlStreamWriter, java.lang.String encoding) throws XMLSecurityException
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:
XMLSecurityException
- thrown when a Security failure occurs
-
processOutMessage
public javax.xml.stream.XMLStreamWriter processOutMessage(java.io.OutputStream outputStream, java.lang.String encoding, SecurityEventListener eventListener) throws XMLSecurityException
- Throws:
XMLSecurityException
-
processOutMessage
public javax.xml.stream.XMLStreamWriter processOutMessage(javax.xml.stream.XMLStreamWriter xmlStreamWriter, java.lang.String encoding, SecurityEventListener eventListener) throws XMLSecurityException
- Throws:
XMLSecurityException
-
processOutMessage
private javax.xml.stream.XMLStreamWriter processOutMessage(java.lang.Object output, java.lang.String encoding, SecurityEventListener eventListener) throws XMLSecurityException
- Throws:
XMLSecurityException
-
initializeOutputProcessor
private void initializeOutputProcessor(OutputProcessorChainImpl outputProcessorChain, OutputProcessor outputProcessor, XMLSecurityConstants.Action action) throws XMLSecurityException
- Throws:
XMLSecurityException
-
configureSignatureKeys
private void configureSignatureKeys(OutboundSecurityContextImpl outboundSecurityContext) throws XMLSecurityException
- Throws:
XMLSecurityException
-
configureEncryptionKeys
private void configureEncryptionKeys(OutboundSecurityContextImpl outboundSecurityContext) throws XMLSecurityException
- Throws:
XMLSecurityException
-
-