University of Cincinnati logo and link  
Permissions
 
  UC ingot A permission is a property checked by the SecurityManager.  Most permissions extend abstract class BasicPermission.
  • BasicPermission is ideal for most permission names.
  • But, FilePermission and SocketPermission have more complex naming systems, so they extend Permission.
  • The table on page 889 of the book lists permissions.
    • Note that certain permissions require arguments, such as the FilePermission.  You can send it read, write, execute, or delete to specify the type of permission you are requesting.
    • Others, such as RuntimePermission exitVM, do nor require extra arguments.  Simply stating this permission means that it is requested.
  • You can create an instance of these Permission objects and pass them to the checkPermission(Permission p) method of the SecurityManager class to see if the requested access is permitted.
 Policy and ProtectionDomain in Detail