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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor
Processor which handles the effective encryption of the dataclass
AbstractEncryptOutputProcessor.CharacterEventGeneratorOutputStream
Creates Character-XMLEvents from the byte stream
-
Field Summary
Fields Modifier and Type Field Description private AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor
activeInternalEncryptionOutputProcessor
private static XMLSecEndElement
wrapperEndElement
private static XMLSecStartElement
wrapperStartElement
-
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 private char[]
byteToCharArray(byte[] bytes, int off, int len)
void
doFinal(OutputProcessorChain outputProcessorChain)
Will be called when the whole document is processed.protected void
doFinalInternal(OutputProcessorChain outputProcessorChain)
protected AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor
getActiveInternalEncryptionOutputProcessor()
abstract void
processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
protected void
setActiveInternalEncryptionOutputProcessor(AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor activeInternalEncryptionOutputProcessor)
protected void
verifyEncryptionParts(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
-
-
-
-
Field Detail
-
wrapperStartElement
private static final XMLSecStartElement wrapperStartElement
-
wrapperEndElement
private static final XMLSecEndElement wrapperEndElement
-
activeInternalEncryptionOutputProcessor
private AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor activeInternalEncryptionOutputProcessor
-
-
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:
processEvent
in classAbstractOutputProcessor
- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:OutputProcessor
Will be called when the whole document is processed.- Specified by:
doFinal
in interfaceOutputProcessor
- Overrides:
doFinal
in 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)
-
byteToCharArray
private char[] byteToCharArray(byte[] bytes, int off, int len)
-
-