org.apache.xml.security.stax.impl.processor.output
Class XMLEncryptOutputProcessor

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.xml.security.stax.impl.processor.output.XMLEncryptOutputProcessor
All Implemented Interfaces:
OutputProcessor

public class XMLEncryptOutputProcessor
extends AbstractEncryptOutputProcessor

Processor to encrypt XML structures

Version:
$Revision: 1236690 $ $Date: 2012-01-27 14:07:10 +0000 (Fri, 27 Jan 2012) $
Author:
$Author: coheigea $

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 inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
 
Constructor Summary
XMLEncryptOutputProcessor()
           
 
Method Summary
protected  AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor createInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement startElement, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLEncryptOutputProcessor

public XMLEncryptOutputProcessor()
                          throws XMLSecurityException
Throws:
XMLSecurityException
Method Detail

processEvent

public void processEvent(XMLSecEvent xmlSecEvent,
                         OutputProcessorChain outputProcessorChain)
                  throws XMLStreamException,
                         XMLSecurityException
Specified by:
processEvent in class AbstractEncryptOutputProcessor
Throws:
XMLStreamException
XMLSecurityException

createInternalEncryptionOutputProcessor

protected AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor createInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef,
                                                                                                                           XMLSecStartElement startElement,
                                                                                                                           String encoding,
                                                                                                                           OutboundSecurityToken keyWrappingToken)
                                                                                                                    throws XMLStreamException,
                                                                                                                           XMLSecurityException
Override this method to return a different AbstractInternalEncryptionOutputProcessor instance which will write out the KeyInfo contents in the EncryptedData.

Throws:
XMLStreamException
XMLSecurityException


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