Class XMLSecurityInputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractInputProcessor
-
- org.apache.xml.security.stax.impl.processor.input.XMLSecurityInputProcessor
-
- All Implemented Interfaces:
InputProcessor
public class XMLSecurityInputProcessor extends AbstractInputProcessor
Processor for XML Security.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classXMLSecurityInputProcessor.InternalBufferProcessorTemporary Processor to buffer all events until the end of the required actionsstatic classXMLSecurityInputProcessor.InternalReplayProcessorTemporary processor to replay the buffered events
-
Field Summary
Fields Modifier and Type Field Description private booleandecryptOnlyprivate booleanencryptedDataElementFoundprivate XMLSecurityInputProcessor.InternalBufferProcessorinternalBufferProcessorprivate booleansignatureElementFoundprivate intstartIndexForProcessor
-
Constructor Summary
Constructors Constructor Description XMLSecurityInputProcessor(XMLSecurityProperties securityProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFinal(InputProcessorChain inputProcessorChain)Will be called when the whole document is processed.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, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
-
-
-
Field Detail
-
startIndexForProcessor
private int startIndexForProcessor
-
internalBufferProcessor
private XMLSecurityInputProcessor.InternalBufferProcessor internalBufferProcessor
-
signatureElementFound
private boolean signatureElementFound
-
encryptedDataElementFound
private boolean encryptedDataElementFound
-
decryptOnly
private boolean decryptOnly
-
-
Constructor Detail
-
XMLSecurityInputProcessor
public XMLSecurityInputProcessor(XMLSecurityProperties securityProperties)
-
-
Method Detail
-
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
-
doFinal
public void doFinal(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceInputProcessor- Overrides:
doFinalin classAbstractInputProcessor- Throws:
javax.xml.stream.XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
-