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 OutputStreamapplyTransforms(OutputStream outputStream) protected abstract voidcreateKeyInfoStructure(OutputProcessorChain outputProcessorChain) protected voiddoFinalInternal(OutputProcessorChain outputProcessorChain) protected EncryptionPartDefprotected XMLSecStartElementvoidinit(OutputProcessorChain outputProcessorChain) Method will be called after setting the propertiesvoidprocessEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) protected voidprocessEventInternal(XMLSecStartElement xmlSecStartElement, OutputProcessorChain outputProcessorChain) Creates the Data structure around the cipher datavoidsetEncoding(String encoding) protected voidsetEncryptionPartDef(EncryptionPartDef encryptionPartDef) protected voidsetXmlSecStartElement(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:OutputProcessorMethod will be called after setting the properties- Specified by:
initin interfaceOutputProcessor- Overrides:
initin classAbstractOutputProcessor- Throws:
XMLSecurityException
-
applyTransforms
- Throws:
XMLSecurityException
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException - Specified by:
processEventin classAbstractOutputProcessor- Throws:
XMLStreamExceptionXMLSecurityException
-
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
-