Use grant to set Socket permission : Permission File « Security « Java Tutorial






grant CodeBase http://www.y.com/-"
{
 permission java.net.SocketPermission "www.y.com", "accept";
};








36.31.Permission File
36.31.1.Use grant command to set read permission
36.31.2.Use grant to set file permission
36.31.3.Use grant to set Socket permission
36.31.4.Use grant to set Property permission
36.31.5.Use grant to set the Runtime permission
36.31.6.Use grant to set file permission based on user.home and file.separator
36.31.7.Configurable Access Control
36.31.8.Grant entry example
36.31.9.jdk policy file entries
36.31.10.allows anyone to listen on un-privileged ports
36.31.11."standard" properies that can be read by anyone
36.31.12.Grant runtime permission stop thread