org.apache.xml.security.stax.impl.processor.input
Class XMLDecryptInputProcessor

java.lang.Object
  extended by org.apache.xml.security.stax.ext.AbstractInputProcessor
      extended by org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
          extended by org.apache.xml.security.stax.impl.processor.input.XMLDecryptInputProcessor
All Implemented Interfaces:
InputProcessor

public class XMLDecryptInputProcessor
extends AbstractDecryptInputProcessor

Processor for decryption of EncryptedData XML structures

Version:
$Revision: 1228829 $ $Date: 2012-01-08 11:44:13 +0000 (Sun, 08 Jan 2012) $
Author:
$Author: giger $

Nested Class Summary
 class XMLDecryptInputProcessor.DecryptedEventReaderInputProcessor
          The DecryptedEventReaderInputProcessor reads the decrypted stream with a StAX reader and forwards the generated XMLEvents
 
Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
 
Field Summary
 
Fields inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
maximumAllowedEncryptedDataEvents, maximumAllowedXMLStructureDepth
 
Constructor Summary
XMLDecryptInputProcessor(XMLSecurityProperties securityProperties)
           
 
Method Summary
protected  void handleCipherReference(InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, Cipher cipher, InboundSecurityToken inboundSecurityToken)
           
protected  void handleEncryptedContent(InputProcessorChain inputProcessorChain, XMLSecStartElement parentXMLSecStartElement, InboundSecurityToken inboundSecurityToken, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
           
protected  void handleSecurityToken(InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
           
protected  AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader, XMLSecStartElement xmlSecStartElement, org.apache.xml.security.binding.xmlenc.EncryptedDataType currentEncryptedDataType, InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext)
           
 
Methods inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
applyTransforms, doFinal, getProcessedReferences, getReferences, matchesReferenceId, processNextEvent, processNextHeaderEvent
 
Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDecryptInputProcessor

public XMLDecryptInputProcessor(XMLSecurityProperties securityProperties)
                         throws XMLSecurityException
Throws:
XMLSecurityException
Method Detail

newDecryptedEventReaderInputProcessor

protected AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader,
                                                                                                                         XMLSecStartElement xmlSecStartElement,
                                                                                                                         org.apache.xml.security.binding.xmlenc.EncryptedDataType currentEncryptedDataType,
                                                                                                                         InboundSecurityToken inboundSecurityToken,
                                                                                                                         InboundSecurityContext inboundSecurityContext)
                                                                                                                  throws XMLSecurityException
Specified by:
newDecryptedEventReaderInputProcessor in class AbstractDecryptInputProcessor
Throws:
XMLSecurityException

handleSecurityToken

protected void handleSecurityToken(InboundSecurityToken inboundSecurityToken,
                                   InboundSecurityContext inboundSecurityContext,
                                   org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
                            throws XMLSecurityException
Specified by:
handleSecurityToken in class AbstractDecryptInputProcessor
Throws:
XMLSecurityException

handleEncryptedContent

protected void handleEncryptedContent(InputProcessorChain inputProcessorChain,
                                      XMLSecStartElement parentXMLSecStartElement,
                                      InboundSecurityToken inboundSecurityToken,
                                      org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
                               throws XMLSecurityException
Specified by:
handleEncryptedContent in class AbstractDecryptInputProcessor
Throws:
XMLSecurityException

handleCipherReference

protected void handleCipherReference(InputProcessorChain inputProcessorChain,
                                     org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType,
                                     Cipher cipher,
                                     InboundSecurityToken inboundSecurityToken)
                              throws XMLSecurityException
Specified by:
handleCipherReference in class AbstractDecryptInputProcessor
Throws:
XMLSecurityException


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