Search in sources :

Example 1 with DocumentContext

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);
}
Also used : DocumentContext(org.apache.xml.security.stax.ext.DocumentContext) SignedElementSecurityEvent(org.apache.xml.security.stax.securityEvent.SignedElementSecurityEvent)

Aggregations

DocumentContext (org.apache.xml.security.stax.ext.DocumentContext)1 SignedElementSecurityEvent (org.apache.xml.security.stax.securityEvent.SignedElementSecurityEvent)1