Implies: All permissions must implement the implies method "a implies b" means that if one is granted permission "a", then one is also granted permission "b" Permission p1 = new FilePermission("/tmp/*", "read"); Permission p2 = new FilePermission("/tmp/readme", "read"); p1.implies(p2) == true p2.implies(p1) == false Policy: is a mapping from identity to a set of access permissions granted to the code. An example policy object ; grant CodeBase "http://www.npac.com/users/gcf", SignedBy "*" { permission java.io.FilePermission "read,write", "/tmp/applets/*"; permission java.net.SocketPermission "connect", "*.npac.com"; }; |