<div dir="ltr">If somebody tries to iterate these collections concurrently with modification in another thread, the consequences are undefined.<div><br></div><div>A possible fix is to use CopyOnWriteArrayList as SecureSet.elements field instead of LinkedList.</div></div>