org.apache.wss4j.stax.impl.processor.output
Class EncryptOutputProcessor

java.lang.Object
  extended by org.apache.xml.security.stax.ext.AbstractOutputProcessor
      extended by org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
          extended by 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, securityProperties
 
Constructor Summary
EncryptOutputProcessor()
           
 
Method Summary
 void doFinalInternal(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
           
 void init(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
           
 void processEvent(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent, org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
           
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)
           
protected  void setupAttachmentEncryptionStreams(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
           
 
Methods inherited from class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
doFinal, 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, outputAsEvent, outputDOMElement, processNextEvent, securePartMatches, setAction, setPhase, setXMLSecurityProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptOutputProcessor

public EncryptOutputProcessor()
                       throws org.apache.xml.security.exceptions.XMLSecurityException
Throws:
org.apache.xml.security.exceptions.XMLSecurityException
Method Detail

init

public void init(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
          throws org.apache.xml.security.exceptions.XMLSecurityException
Specified by:
init in interface org.apache.xml.security.stax.ext.OutputProcessor
Overrides:
init in class org.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:
processEvent in class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
Throws:
XMLStreamException
org.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:
securePartMatches in class org.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:
doFinalInternal in class org.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


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.