security - Java preventing reflection -


this question has answer here:

i planning on hosting little tournament.

the competitors each provide java class implementing interface accept gamestate connect four, , return move.

how prevent team finding other team's class(via reflection) , messing methods fight easy opponent?

this hard problem, , similar in nature security sandbox imposed on java applets.

sun (and oracle) tried many years right, they still have yet succeed.

you should assume code runs has way around security measures. if want make hard code interfere other running programs, should make opponents communicate on socket instead of in-process , perhaps run them on different virtual machines.


Comments