Package edu.pdx.cs410J.security
Class PrintUser
java.lang.Object
edu.pdx.cs410J.security.PrintUser
This class demonstrates SecurityManager
s and
Permission
s by attempting to access the
user.name
system property.
This code should be run in three different modes:
- With no security enabled
- With the default (applet level) security manager:
-Djava.security.manager
- With the a policy file containing the following permissions:
grant { permission java.util.PropertyPermission "user.home", "read"; };
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PrintUser
public PrintUser()
-
-
Method Details
-
main
-