Class AbstractEncryptOutputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractOutputProcessor
-
- org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
-
- All Implemented Interfaces:
OutputProcessor
- Direct Known Subclasses:
XMLEncryptOutputProcessor
public abstract class AbstractEncryptOutputProcessor extends AbstractOutputProcessor
Processor to encrypt XML structures- Version:
- $Revision: 1747188 $ $Date: 2016-06-07 12:52:58 +0200 (Tue, 07 Jun 2016) $
- Author:
- $Author: coheigea $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessorProcessor which handles the effective encryption of the dataclassAbstractEncryptOutputProcessor.CharacterEventGeneratorOutputStreamCreates Character-XMLEvents from the byte stream
-
Field Summary
-
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
-
Constructor Summary
Constructors Constructor Description AbstractEncryptOutputProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoFinal(OutputProcessorChain outputProcessorChain)Will be called when the whole document is processed.protected voiddoFinalInternal(OutputProcessorChain outputProcessorChain)protected AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessorgetActiveInternalEncryptionOutputProcessor()abstract voidprocessEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)protected voidsetActiveInternalEncryptionOutputProcessor(AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor activeInternalEncryptionOutputProcessor)protected voidverifyEncryptionParts(OutputProcessorChain outputProcessorChain)-
Methods inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, getAction, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, init, outputAsEvent, outputDOMElement, processNextEvent, securePartMatches, securePartMatches, setAction, setPhase, setXMLSecurityProperties
-
-
-
-
Constructor Detail
-
AbstractEncryptOutputProcessor
public AbstractEncryptOutputProcessor() throws XMLSecurityException- Throws:
XMLSecurityException
-
-
Method Detail
-
processEvent
public abstract void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Specified by:
processEventin classAbstractOutputProcessor- Throws:
javax.xml.stream.XMLStreamExceptionXMLSecurityException
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:OutputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceOutputProcessor- Overrides:
doFinalin classAbstractOutputProcessor- Throws:
javax.xml.stream.XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
doFinalInternal
protected void doFinalInternal(OutputProcessorChain outputProcessorChain) throws XMLSecurityException
- Throws:
XMLSecurityException
-
verifyEncryptionParts
protected void verifyEncryptionParts(OutputProcessorChain outputProcessorChain) throws XMLSecurityException
- Throws:
XMLSecurityException
-
getActiveInternalEncryptionOutputProcessor
protected AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor getActiveInternalEncryptionOutputProcessor()
-
setActiveInternalEncryptionOutputProcessor
protected void setActiveInternalEncryptionOutputProcessor(AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor activeInternalEncryptionOutputProcessor)
-
-