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

java.lang.Object
  extended by org.apache.xml.security.stax.ext.AbstractOutputProcessor
      extended by org.apache.xml.security.stax.impl.processor.output.AbstractSignatureOutputProcessor
All Implemented Interfaces:
OutputProcessor
Direct Known Subclasses:
XMLSignatureOutputProcessor

public abstract class AbstractSignatureOutputProcessor
extends AbstractOutputProcessor

Version:
$Revision: 1570155 $ $Date: 2014-02-20 11:47:31 +0000 (Thu, 20 Feb 2014) $
Author:
$Author: coheigea $

Nested Class Summary
 class AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor
           
 
Field Summary
 
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
 
Constructor Summary
AbstractSignatureOutputProcessor()
           
 
Method Summary
protected  Transformer buildTransformerChain(OutputStream outputStream, SignaturePartDef signaturePartDef, XMLSecStartElement xmlSecStartElement)
           
protected  DigestOutputStream createMessageDigestOutputStream(String digestAlgorithm)
           
protected  void digestExternalReference(OutputProcessorChain outputProcessorChain, SecurePart securePart)
           
 void doFinal(OutputProcessorChain outputProcessorChain)
          Will be called when the whole document is processed.
protected  void doFinalInternal(OutputProcessorChain outputProcessorChain)
           
protected  AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor getActiveInternalSignatureOutputProcessor()
           
 List<SignaturePartDef> getSignaturePartDefList()
           
abstract  void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
           
protected  void setActiveInternalSignatureOutputProcessor(AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor activeInternalSignatureOutputProcessor)
           
protected  void verifySignatureParts(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSignatureOutputProcessor

public AbstractSignatureOutputProcessor()
                                 throws XMLSecurityException
Throws:
XMLSecurityException
Method Detail

getSignaturePartDefList

public List<SignaturePartDef> getSignaturePartDefList()

processEvent

public abstract void processEvent(XMLSecEvent xmlSecEvent,
                                  OutputProcessorChain outputProcessorChain)
                           throws XMLStreamException,
                                  XMLSecurityException
Specified by:
processEvent in class AbstractOutputProcessor
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 interface OutputProcessor
Overrides:
doFinal in class AbstractOutputProcessor
Throws:
XMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs

doFinalInternal

protected void doFinalInternal(OutputProcessorChain outputProcessorChain)
                        throws XMLSecurityException,
                               XMLStreamException
Throws:
XMLSecurityException
XMLStreamException

digestExternalReference

protected void digestExternalReference(OutputProcessorChain outputProcessorChain,
                                       SecurePart securePart)
                                throws XMLSecurityException,
                                       XMLStreamException
Throws:
XMLSecurityException
XMLStreamException

verifySignatureParts

protected void verifySignatureParts(OutputProcessorChain outputProcessorChain)
                             throws XMLSecurityException
Throws:
XMLSecurityException

getActiveInternalSignatureOutputProcessor

protected AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor getActiveInternalSignatureOutputProcessor()

setActiveInternalSignatureOutputProcessor

protected void setActiveInternalSignatureOutputProcessor(AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor activeInternalSignatureOutputProcessor)

createMessageDigestOutputStream

protected DigestOutputStream createMessageDigestOutputStream(String digestAlgorithm)
                                                      throws XMLSecurityException
Throws:
XMLSecurityException

buildTransformerChain

protected Transformer buildTransformerChain(OutputStream outputStream,
                                            SignaturePartDef signaturePartDef,
                                            XMLSecStartElement xmlSecStartElement)
                                     throws XMLSecurityException
Throws:
XMLSecurityException


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