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
ConstructorsConstructorDescriptionAbstractInternalEncryptionOutputProcessor
(EncryptionPartDef encryptionPartDef, XMLSecStartElement xmlSecStartElement, String encoding) -
Method Summary
Modifier and TypeMethodDescriptionprotected OutputStream
applyTransforms
(OutputStream outputStream) protected abstract void
createKeyInfoStructure
(OutputProcessorChain outputProcessorChain) protected void
doFinalInternal
(OutputProcessorChain outputProcessorChain) protected EncryptionPartDef
protected XMLSecStartElement
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
(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 Details
-
AbstractInternalEncryptionOutputProcessor
public AbstractInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement xmlSecStartElement, String encoding) throws XMLSecurityException - Throws:
XMLSecurityException
-
-
Method Details
-
init
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
- Throws:
XMLSecurityException
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException - Specified by:
processEvent
in classAbstractOutputProcessor
- Throws:
XMLStreamException
XMLSecurityException
-
processEventInternal
protected void processEventInternal(XMLSecStartElement xmlSecStartElement, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException Creates the Data structure around the cipher data -
createKeyInfoStructure
protected abstract void createKeyInfoStructure(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException -
doFinalInternal
protected void doFinalInternal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException -
getEncryptionPartDef
-
setEncryptionPartDef
-
getXmlSecStartElement
-
setXmlSecStartElement
-
getEncoding
-
setEncoding
-