Configurable Access Control : Permission File « Security « Java Tutorial






import java.io.FileInputStream;

public class MainClass {
  public static void main(String[] args) throws Exception {
    String operatingSystem = (String) System.getProperty("os.name");
    String javaVersion = (String) System.getProperty("java.version");

    String javaDirectory = (String) System.getProperty("java.home");
    String userHomeDir = (String) System.getProperty("user.home");
    String myFile = (String) System.getProperty("myFile");
    FileInputStream fin = new FileInputStream(myFile);
  }
}








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