Class XMLEncryptOutputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractOutputProcessor
-
- org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
-
- org.apache.xml.security.stax.impl.processor.output.XMLEncryptOutputProcessor
-
- All Implemented Interfaces:
OutputProcessor
public class XMLEncryptOutputProcessor extends AbstractEncryptOutputProcessor
Processor to encrypt XML structures
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor, AbstractEncryptOutputProcessor.CharacterEventGeneratorOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
LOG
-
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
-
Constructor Summary
Constructors Constructor Description XMLEncryptOutputProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor
createInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement startElement, java.lang.String encoding, OutboundSecurityToken keyWrappingToken)
Override this method to return a different AbstractInternalEncryptionOutputProcessor instance which will write out the KeyInfo contents in the EncryptedData.void
processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
-
Methods inherited from class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
doFinal, doFinalInternal, getActiveInternalEncryptionOutputProcessor, setActiveInternalEncryptionOutputProcessor, verifyEncryptionParts
-
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
-
XMLEncryptOutputProcessor
public XMLEncryptOutputProcessor() throws XMLSecurityException
- Throws:
XMLSecurityException
-
-
Method Detail
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Specified by:
processEvent
in classAbstractEncryptOutputProcessor
- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
createInternalEncryptionOutputProcessor
protected AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor createInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement startElement, java.lang.String encoding, OutboundSecurityToken keyWrappingToken) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Override this method to return a different AbstractInternalEncryptionOutputProcessor instance which will write out the KeyInfo contents in the EncryptedData.- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
-