
// Standard extensions get all permissions by default

// default permissions granted to all domains

grant { 
	permission java.security.AllPermission;
};

/* Grant permissions to client codebase */
grant codeBase "http://www.columbia.edu/~jw168/ninja/-" {

    /* allow all properties to be read */
    permission java.util.PropertyPermission "*", "read";

    permission java.io.FilePermission "/-", "read,write,execute";
    
    /* webserver */
    permission java.net.SocketPermission "localhost:80", "listen";
    permission java.net.SocketPermission "*:80", "accept";

    /* jini lookup */
    permission java.net.SocketPermission "*.columbia.edu:4160", "connect";

};
