Class EncryptOutputProcessor
java.lang.Object
org.apache.xml.security.stax.ext.AbstractOutputProcessor
org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
org.apache.wss4j.stax.impl.processor.output.EncryptOutputProcessor
- All Implemented Interfaces:
org.apache.xml.security.stax.ext.OutputProcessor
public class EncryptOutputProcessor
extends org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
Processor to encrypt XML structures
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor, org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor.CharacterEventGeneratorOutputStream -
Field Summary
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, actionOrder, securityProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFinalInternal(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) voidinit(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) voidprocessEvent(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent, org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) protected org.apache.xml.security.stax.ext.SecurePartsecurePartMatches(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement, Map<Object, org.apache.xml.security.stax.ext.SecurePart> secureParts) protected voidsetupAttachmentEncryptionStreams(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) Methods inherited from class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
doFinal, getActiveInternalEncryptionOutputProcessor, setActiveInternalEncryptionOutputProcessor, verifyEncryptionPartsMethods inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, getAction, getActionOrder, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, outputAsEvent, outputDOMElement, securePartMatches, setAction, setPhase, setXMLSecurityProperties
-
Constructor Details
-
EncryptOutputProcessor
public EncryptOutputProcessor() throws org.apache.xml.security.exceptions.XMLSecurityException- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
-
Method Details
-
init
public void init(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) throws org.apache.xml.security.exceptions.XMLSecurityException - Specified by:
initin interfaceorg.apache.xml.security.stax.ext.OutputProcessor- Overrides:
initin classorg.apache.xml.security.stax.ext.AbstractOutputProcessor- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
processEvent
public void processEvent(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent, org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) throws XMLStreamException, org.apache.xml.security.exceptions.XMLSecurityException - Specified by:
processEventin interfaceorg.apache.xml.security.stax.ext.OutputProcessor- Specified by:
processEventin classorg.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor- Throws:
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityException
-
securePartMatches
protected org.apache.xml.security.stax.ext.SecurePart securePartMatches(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement, Map<Object, org.apache.xml.security.stax.ext.SecurePart> secureParts) - Overrides:
securePartMatchesin classorg.apache.xml.security.stax.ext.AbstractOutputProcessor
-
doFinalInternal
public void doFinalInternal(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) throws org.apache.xml.security.exceptions.XMLSecurityException - Overrides:
doFinalInternalin classorg.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
setupAttachmentEncryptionStreams
protected void setupAttachmentEncryptionStreams(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain) throws org.apache.xml.security.exceptions.XMLSecurityException - Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-