Module org.apache.santuario.xmlsec
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
Processor for XML Security.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassTemporary Processor to buffer all events until the end of the required actionsstatic classTemporary processor to replay the buffered events -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFinal(InputProcessorChain inputProcessorChain) Will be called when the whole document is processed.processEvent(InputProcessorChain inputProcessorChain) Will be called from the framework when the next XMLEvent is requestedprocessHeaderEvent(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
-
startIndexForProcessor
private int startIndexForProcessor -
internalBufferProcessor
-
signatureElementFound
private boolean signatureElementFound -
encryptedDataElementFound
private boolean encryptedDataElementFound -
decryptOnly
private boolean decryptOnly
-
-
Constructor Details
-
XMLSecurityInputProcessor
-
-
Method Details
-
processHeaderEvent
public XMLSecEvent processHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessorWill be called from the framework when the next security-header XMLEvent is requested- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processEvent
public XMLSecEvent processEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessorWill be called from the framework when the next XMLEvent is requested- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
doFinal
public void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceInputProcessor- Overrides:
doFinalin classAbstractInputProcessor- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-