@Override
public void handle(final InputProcessorChain inputProcessorChain, final XMLSecurityProperties securityProperties,
Deque<XMLSecEvent> eventQueue, Integer index) throws XMLSecurityException {
@SuppressWarnings("unchecked")
final SignatureConfirmationType signatureConfirmationType =
((JAXBElement<SignatureConfirmationType>) parseStructure(eventQueue, index, securityProperties)).getValue();
checkBSPCompliance(inputProcessorChain, signatureConfirmationType);
inputProcessorChain.getSecurityContext().putAsList(SignatureConfirmationType.class, signatureConfirmationType);
//emit a SignatureConfirmationSecurityEvent
SignatureConfirmationSecurityEvent signatureConfirmationSecurityEvent = new SignatureConfirmationSecurityEvent();
signatureConfirmationSecurityEvent.setSignatureValue(signatureConfirmationType.getValue());
inputProcessorChain.getSecurityContext().registerSecurityEvent(signatureConfirmationSecurityEvent);
}