securityContextImpl.put(WSSConstants.XMLINPUTFACTORY, xmlInputFactory);
DocumentContextImpl documentContext = new DocumentContextImpl();
documentContext.setEncoding(xmlStreamReader.getEncoding() != null ? xmlStreamReader.getEncoding() : "UTF-8");
InputProcessorChainImpl inputProcessorChain = new InputProcessorChainImpl(securityContextImpl, documentContext);
inputProcessorChain.addProcessor(new XMLEventReaderInputProcessor(securityProperties, xmlStreamReader));
inputProcessorChain.addProcessor(new SecurityHeaderInputProcessor(securityProperties));
inputProcessorChain.addProcessor(new OperationInputProcessor(securityProperties));
if (securityProperties.isEnableSignatureConfirmationVerification()) {
inputProcessorChain.addProcessor(new SignatureConfirmationInputProcessor(securityProperties));