Class XMLEventReaderInputProcessor
java.lang.Object
org.apache.xml.security.stax.ext.AbstractInputProcessor
org.apache.xml.security.stax.impl.processor.input.XMLEventReaderInputProcessor
- All Implemented Interfaces:
InputProcessor
The XMLEventReaderInputProcessor reads requested XMLEvents from the original XMLEventReader
and returns them to the requester
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
private static final Integer
private XMLSecStartElement
private final XMLStreamReader
-
Constructor Summary
ConstructorsConstructorDescriptionXMLEventReaderInputProcessor
(XMLSecurityProperties securityProperties, XMLStreamReader xmlStreamReader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFinal
(InputProcessorChain inputProcessorChain) Will be called when the whole document is processed.processNextEvent
(InputProcessorChain inputProcessorChain) Will be called from the framework when the next XMLEvent is requestedprivate XMLSecEvent
processNextHeaderEvent
(InputProcessorChain inputProcessorChain) Will be called from the framework when the next security-header XMLEvent is requestedMethods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
Field Details
-
maximumAllowedXMLStructureDepth
-
currentXMLStructureDepth
private int currentXMLStructureDepth -
xmlStreamReader
-
parentXmlSecStartElement
-
EOF
private boolean EOF
-
-
Constructor Details
-
XMLEventReaderInputProcessor
public XMLEventReaderInputProcessor(XMLSecurityProperties securityProperties, XMLStreamReader xmlStreamReader)
-
-
Method Details
-
processNextHeaderEvent
public XMLSecEvent processNextHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessor
Will be called from the framework when the next security-header XMLEvent is requested- Specified by:
processNextHeaderEvent
in interfaceInputProcessor
- Specified by:
processNextHeaderEvent
in 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:InputProcessor
Will be called from the framework when the next XMLEvent is requested- Specified by:
processNextEvent
in interfaceInputProcessor
- Specified by:
processNextEvent
in classAbstractInputProcessor
- Parameters:
inputProcessorChain
-- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
processNextEventInternal
- Throws:
XMLStreamException
-
doFinal
public void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessor
Will be called when the whole document is processed.- Specified by:
doFinal
in interfaceInputProcessor
- Overrides:
doFinal
in classAbstractInputProcessor
- Parameters:
inputProcessorChain
-- Throws:
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-