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
Processor to encrypt XML structures
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Processor which handles the effective encryption of the dataclass
Creates Character-XMLEvents from the byte stream -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final XMLSecEndElement
private static final XMLSecStartElement
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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) 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 Details
-
wrapperStartElement
-
wrapperEndElement
-
activeInternalEncryptionOutputProcessor
private AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor activeInternalEncryptionOutputProcessor
-
-
Constructor Details
-
AbstractEncryptOutputProcessor
- Throws:
XMLSecurityException
-
-
Method Details
-
processEvent
public abstract void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException - Specified by:
processEvent
in classAbstractOutputProcessor
- Throws:
XMLStreamException
XMLSecurityException
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws 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:
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)
-