Class AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractOutputProcessor
-
- 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
Constructors Constructor Description AbstractInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement xmlSecStartElement, java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.io.OutputStream
applyTransforms(java.io.OutputStream outputStream)
protected abstract void
createKeyInfoStructure(OutputProcessorChain outputProcessorChain)
protected void
doFinalInternal(OutputProcessorChain outputProcessorChain)
java.lang.String
getEncoding()
protected EncryptionPartDef
getEncryptionPartDef()
protected XMLSecStartElement
getXmlSecStartElement()
void
init(OutputProcessorChain outputProcessorChain)
Method will be called after setting the propertiesvoid
processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
protected void
processEventInternal(XMLSecStartElement xmlSecStartElement, OutputProcessorChain outputProcessorChain)
Creates the Data structure around the cipher datavoid
setEncoding(java.lang.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
-
-
-
-
Constructor Detail
-
AbstractInternalEncryptionOutputProcessor
public AbstractInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement xmlSecStartElement, java.lang.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 interfaceOutputProcessor
- Overrides:
init
in classAbstractOutputProcessor
- Throws:
XMLSecurityException
-
applyTransforms
protected java.io.OutputStream applyTransforms(java.io.OutputStream outputStream) throws XMLSecurityException
- Throws:
XMLSecurityException
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Specified by:
processEvent
in classAbstractOutputProcessor
- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
processEventInternal
protected void processEventInternal(XMLSecStartElement xmlSecStartElement, OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Creates the Data structure around the cipher data- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
createKeyInfoStructure
protected abstract void createKeyInfoStructure(OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
doFinalInternal
protected void doFinalInternal(OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
getEncryptionPartDef
protected EncryptionPartDef getEncryptionPartDef()
-
setEncryptionPartDef
protected void setEncryptionPartDef(EncryptionPartDef encryptionPartDef)
-
getXmlSecStartElement
protected XMLSecStartElement getXmlSecStartElement()
-
setXmlSecStartElement
protected void setXmlSecStartElement(XMLSecStartElement xmlSecStartElement)
-
getEncoding
public java.lang.String getEncoding()
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
-