If you want the recipient to have access only to the reply, then you need to provide access only to the reply. In this case java should be executed remotely (where the user can't access the executable code, usually it's a server on the network), the user should get the responses already as text. The insertion of a delay can be.