};
}
@Override
public boolean assertEvent(SecurityEvent securityEvent) throws WSSPolicyException {
RequiredElementSecurityEvent requiredElementSecurityEvent = (RequiredElementSecurityEvent) securityEvent;
Iterator<Map.Entry<List<QName>, Boolean>> elementMapIterator = pathElements.entrySet().iterator();
while (elementMapIterator.hasNext()) {
Map.Entry<List<QName>, Boolean> next = elementMapIterator.next();
List<QName> qNameList = next.getKey();
if (WSSUtils.pathMatches(qNameList, requiredElementSecurityEvent.getElementPath(), true, false)) {
next.setValue(Boolean.TRUE);
break;
}
}
//if we return false here other required elements will trigger a PolicyViolationException