org.apache.wss4j.stax.impl.processor.input
Class DecryptInputProcessor

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.wss4j.stax.impl.processor.input.DecryptInputProcessor
All Implemented Interfaces:
org.apache.xml.security.stax.ext.InputProcessor

public class DecryptInputProcessor
extends org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor

Processor for decryption of EncryptedData XML structures


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
 
Field Summary
 
Fields inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
maximumAllowedEncryptedDataEvents, maximumAllowedXMLStructureDepth
 
Constructor Summary
DecryptInputProcessor(org.apache.xml.security.binding.xmldsig.KeyInfoType keyInfoType, org.apache.xml.security.binding.xmlenc.ReferenceList referenceList, WSSSecurityProperties securityProperties, WSInboundSecurityContext securityContext)
           
 
Method Summary
protected  InputStream applyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType, InputStream inputStream)
           
 void doFinal(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain)
           
protected  void handleCipherReference(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, Cipher cipher, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken)
           
protected  void handleEncryptedContent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.stax.ext.stax.XMLSecStartElement parentStartXMLEvent, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
           
protected  void handleSecurityToken(org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
           
protected  org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader, org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext)
           
 
Methods inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
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

DecryptInputProcessor

public DecryptInputProcessor(org.apache.xml.security.binding.xmldsig.KeyInfoType keyInfoType,
                             org.apache.xml.security.binding.xmlenc.ReferenceList referenceList,
                             WSSSecurityProperties securityProperties,
                             WSInboundSecurityContext securityContext)
                      throws org.apache.xml.security.exceptions.XMLSecurityException
Throws:
org.apache.xml.security.exceptions.XMLSecurityException
Method Detail

applyTransforms

protected InputStream applyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType,
                                      InputStream inputStream)
                               throws org.apache.xml.security.exceptions.XMLSecurityException
Overrides:
applyTransforms in class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

handleEncryptedContent

protected void handleEncryptedContent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain,
                                      org.apache.xml.security.stax.ext.stax.XMLSecStartElement parentStartXMLEvent,
                                      org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken,
                                      org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
                               throws org.apache.xml.security.exceptions.XMLSecurityException
Specified by:
handleEncryptedContent in class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

handleCipherReference

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

newDecryptedEventReaderInputProcessor

protected org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader,
                                                                                                                                                                           org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement,
                                                                                                                                                                           org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType,
                                                                                                                                                                           org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken,
                                                                                                                                                                           org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext)
                                                                                                                                                                    throws org.apache.xml.security.exceptions.XMLSecurityException
Specified by:
newDecryptedEventReaderInputProcessor in class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

handleSecurityToken

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

doFinal

public void doFinal(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain)
             throws XMLStreamException,
                    org.apache.xml.security.exceptions.XMLSecurityException
Specified by:
doFinal in interface org.apache.xml.security.stax.ext.InputProcessor
Overrides:
doFinal in class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
Throws:
XMLStreamException
org.apache.xml.security.exceptions.XMLSecurityException


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