1 grant {
   2     permission java.net.SocketPermission "127.0.0.1", "connect,accept" ;
   3     permission java.net.SocketPermission "localhost", "listen" ;
   4 };