use of org.apache.xml.security.stax.ext.DocumentContext in project santuario-java by apache.
the class XMLSignatureReferenceVerifyInputProcessor method processElementPath.
@Override
protected void processElementPath(List<QName> elementPath, InputProcessorChain inputProcessorChain, XMLSecEvent xmlSecEvent, ReferenceType referenceType) throws XMLSecurityException {
final DocumentContext documentContext = inputProcessorChain.getDocumentContext();
SignedElementSecurityEvent signedElementSecurityEvent = new SignedElementSecurityEvent(getInboundSecurityToken(), true, documentContext.getProtectionOrder());
signedElementSecurityEvent.setElementPath(elementPath);
signedElementSecurityEvent.setXmlSecEvent(xmlSecEvent);
signedElementSecurityEvent.setCorrelationID(referenceType.getId());
inputProcessorChain.getSecurityContext().registerSecurityEvent(signedElementSecurityEvent);
}
Aggregations