Class PrintUser

java.lang.Object
edu.pdx.cs410J.security.PrintUser

public class PrintUser extends Object

This class demonstrates SecurityManagers and Permissions by attempting to access the user.name system property.

This code should be run in three different modes:

  1. With no security enabled
  2. With the default (applet level) security manager: -Djava.security.manager
  3. With the a policy file containing the following permissions:
     grant {
       permission java.util.PropertyPermission "user.home", "read";
     };
     
  • Constructor Details

  • Method Details