Class AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
java.lang.Object
org.apache.xml.security.stax.ext.AbstractInputProcessor
org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler, InputProcessor
- Direct Known Subclasses:
XMLDecryptInputProcessor.DecryptedEventReaderInputProcessor
- Enclosing class:
AbstractDecryptInputProcessor
public abstract class AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
extends AbstractInputProcessor
implements Thread.UncaughtExceptionHandler
The DecryptedEventReaderInputProcessor reads the decrypted stream with a StAX reader and
forwards the generated XMLEvents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Threadprivate EncryptedDataTypeprivate booleanprivate final InboundSecurityTokenprivate XMLSecStartElementprivate booleanprivate Throwableprivate XMLStreamReader -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDecryptedEventReaderInputProcessor(XMLSecurityProperties securityProperties, SecurePart.Modifier encryptionModifier, boolean encryptedHeader, XMLSecStartElement xmlSecStartElement, EncryptedDataType encryptedDataType, AbstractDecryptInputProcessor abstractDecryptInputProcessor, InboundSecurityToken inboundSecurityToken) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidhandleEncryptedElement(InputProcessorChain inputProcessorChain, XMLSecStartElement xmlSecStartElement, InboundSecurityToken inboundSecurityToken, EncryptedDataType encryptedDataType) private XMLSecEventprocessEvent(InputProcessorChain inputProcessorChain, boolean headerEvent) processNextEvent(InputProcessorChain inputProcessorChain) Will be called from the framework when the next XMLEvent is requestedprocessNextHeaderEvent(InputProcessorChain inputProcessorChain) Will be called from the framework when the next security-header XMLEvent is requestedvoidsetDecryptionThread(Thread decryptionThread) voidsetXmlStreamReader(XMLStreamReader xmlStreamReader) private voidvoiduncaughtException(Thread t, Throwable e) Methods inherited from class AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, doFinal, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
Field Details
-
currentXMLStructureDepth
private int currentXMLStructureDepth -
xmlStreamReader
-
parentXmlSecStartElement
-
encryptedHeader
private boolean encryptedHeader -
inboundSecurityToken
-
rootElementProcessed
private boolean rootElementProcessed -
encryptedDataType
-
decryptionThread
-
thrownException
-
-
Constructor Details
-
AbstractDecryptedEventReaderInputProcessor
public AbstractDecryptedEventReaderInputProcessor(XMLSecurityProperties securityProperties, SecurePart.Modifier encryptionModifier, boolean encryptedHeader, XMLSecStartElement xmlSecStartElement, EncryptedDataType encryptedDataType, AbstractDecryptInputProcessor abstractDecryptInputProcessor, InboundSecurityToken inboundSecurityToken)
-
-
Method Details
-
setDecryptionThread
-
setXmlStreamReader
-
processNextHeaderEvent
public XMLSecEvent processNextHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessorWill be called from the framework when the next security-header XMLEvent is requested- Specified by:
processNextHeaderEventin interfaceInputProcessor- Specified by:
processNextHeaderEventin classAbstractInputProcessor- Parameters:
inputProcessorChain-- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processNextEvent
public XMLSecEvent processNextEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessorWill be called from the framework when the next XMLEvent is requested- Specified by:
processNextEventin interfaceInputProcessor- Specified by:
processNextEventin classAbstractInputProcessor- Parameters:
inputProcessorChain-- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processEvent
private XMLSecEvent processEvent(InputProcessorChain inputProcessorChain, boolean headerEvent) throws XMLStreamException, XMLSecurityException -
handleEncryptedElement
protected abstract void handleEncryptedElement(InputProcessorChain inputProcessorChain, XMLSecStartElement xmlSecStartElement, InboundSecurityToken inboundSecurityToken, EncryptedDataType encryptedDataType) throws XMLSecurityException - Throws:
XMLSecurityException
-
uncaughtException
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
testAndThrowUncaughtException
- Throws:
XMLStreamException
-