Class XMLSecurityInputProcessor.InternalBufferProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractInputProcessor
-
- org.apache.xml.security.stax.impl.processor.input.XMLSecurityInputProcessor.InternalBufferProcessor
-
- All Implemented Interfaces:
InputProcessor
- Enclosing class:
- XMLSecurityInputProcessor
public class XMLSecurityInputProcessor.InternalBufferProcessor extends AbstractInputProcessor
Temporary Processor to buffer all events until the end of the required actions
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayDeque<XMLSecEvent>xmlSecEventList
-
Constructor Summary
Constructors Constructor Description InternalBufferProcessor(XMLSecurityProperties securityProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayDeque<XMLSecEvent>getXmlSecEventList()XMLSecEventprocessNextEvent(InputProcessorChain inputProcessorChain)Will be called from the framework when the next XMLEvent is requestedXMLSecEventprocessNextHeaderEvent(InputProcessorChain inputProcessorChain)Will be called from the framework when the next security-header XMLEvent is requested-
Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, doFinal, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
-
-
-
Field Detail
-
xmlSecEventList
private final java.util.ArrayDeque<XMLSecEvent> xmlSecEventList
-
-
Constructor Detail
-
InternalBufferProcessor
InternalBufferProcessor(XMLSecurityProperties securityProperties)
-
-
Method Detail
-
getXmlSecEventList
public java.util.ArrayDeque<XMLSecEvent> getXmlSecEventList()
-
processNextHeaderEvent
public XMLSecEvent processNextHeaderEvent(InputProcessorChain inputProcessorChain) throws javax.xml.stream.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- Returns:
- The next XMLSecEvent
- Throws:
javax.xml.stream.XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processNextEvent
public XMLSecEvent processNextEvent(InputProcessorChain inputProcessorChain) throws javax.xml.stream.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- Returns:
- The next XMLSecEvent
- Throws:
javax.xml.stream.XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
-