org.apache.xml.security.stax.impl.processor.output
Class AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor

java.lang.Object
  extended by org.apache.xml.security.stax.ext.AbstractOutputProcessor
      extended by org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor
All Implemented Interfaces:
OutputProcessor
Enclosing class:
AbstractEncryptOutputProcessor

public abstract class AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor
extends AbstractOutputProcessor

Processor which handles the effective encryption of the data


Field Summary
 
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
 
Constructor Summary
AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement xmlSecStartElement, String encoding)
           
 
Method Summary
protected  OutputStream applyTransforms(OutputStream outputStream)
           
protected abstract  void createKeyInfoStructure(OutputProcessorChain outputProcessorChain)
           
protected  void doFinalInternal(OutputProcessorChain outputProcessorChain)
           
 String getEncoding()
           
protected  EncryptionPartDef getEncryptionPartDef()
           
protected  XMLSecStartElement getXmlSecStartElement()
           
 void init(OutputProcessorChain outputProcessorChain)
          Method will be called after setting the properties
 void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
           
protected  void processEventInternal(XMLSecStartElement xmlSecStartElement, OutputProcessorChain outputProcessorChain)
          Creates the Data structure around the cipher data
 void setEncoding(String encoding)
           
protected  void setEncryptionPartDef(EncryptionPartDef encryptionPartDef)
           
protected  void setXmlSecStartElement(XMLSecStartElement xmlSecStartElement)
           
 
Methods inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, doFinal, getAction, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, outputAsEvent, outputDOMElement, processNextEvent, securePartMatches, securePartMatches, setAction, setPhase, setXMLSecurityProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor

public AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef,
                                                                                XMLSecStartElement xmlSecStartElement,
                                                                                String encoding)
                                                                         throws XMLSecurityException
Throws:
XMLSecurityException
Method Detail

init

public void init(OutputProcessorChain outputProcessorChain)
          throws XMLSecurityException
Description copied from interface: OutputProcessor
Method will be called after setting the properties

Specified by:
init in interface OutputProcessor
Overrides:
init in class AbstractOutputProcessor
Throws:
XMLSecurityException

applyTransforms

protected OutputStream applyTransforms(OutputStream outputStream)
                                throws XMLSecurityException
Throws:
XMLSecurityException

processEvent

public void processEvent(XMLSecEvent xmlSecEvent,
                         OutputProcessorChain outputProcessorChain)
                  throws XMLStreamException,
                         XMLSecurityException
Specified by:
processEvent in class AbstractOutputProcessor
Throws:
XMLStreamException
XMLSecurityException

processEventInternal

protected void processEventInternal(XMLSecStartElement xmlSecStartElement,
                                    OutputProcessorChain outputProcessorChain)
                             throws XMLStreamException,
                                    XMLSecurityException
Creates the Data structure around the cipher data

Throws:
XMLStreamException
XMLSecurityException

createKeyInfoStructure

protected abstract void createKeyInfoStructure(OutputProcessorChain outputProcessorChain)
                                        throws XMLStreamException,
                                               XMLSecurityException
Throws:
XMLStreamException
XMLSecurityException

doFinalInternal

protected void doFinalInternal(OutputProcessorChain outputProcessorChain)
                        throws XMLStreamException,
                               XMLSecurityException
Throws:
XMLStreamException
XMLSecurityException

getEncryptionPartDef

protected EncryptionPartDef getEncryptionPartDef()

setEncryptionPartDef

protected void setEncryptionPartDef(EncryptionPartDef encryptionPartDef)

getXmlSecStartElement

protected XMLSecStartElement getXmlSecStartElement()

setXmlSecStartElement

protected void setXmlSecStartElement(XMLSecStartElement xmlSecStartElement)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)


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