edu.pdx.cs399J.security
Class PrintUser
java.lang.Object
edu.pdx.cs399J.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:
- 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";
};
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintUser
public PrintUser()
main
public static void main(String[] args)
Copyright © 2000-2009 Portland State University. All Rights Reserved.