Section 6.6. Permission Classes

6.6. Permission Classes

Table 6-1 lists some important Permission subclasses defined by the core Java platform and summarizes the permissions they represent. See the reference section for more information on the individual classes. See http://java.sun.com/j2se/1.5.0/docs/guide/security/permissions.html for a complete list and detailed description of these permissions classes, along with their target and action names and a list of methods and the permissions they require (this document is part of the standard documentation bundle that can be downloaded along with the JDK).

Table 6-1. Java permission classes

Permission class

Description

java.security.AllPermission

An instance of this special permission class implies all other permissions.

javax.sound.sampled.AudioPermission

Controls the ability to play and record sound.

javax.security.auth.AuthPermission

Controls access to authentication methods in javax.security.auth and its subpackages.

java.awt.AWTPermission

Controls access to sensitive methods in java.awt and its subpackages.

java.io.FilePermission

Governs access to the filesystem.

java.util.logging.LoggingPermission

Controls the ability of a program to modify the logging configuration.

java.net.NetPermission

Governs access to networking- related resources such as stream handlers and HTTP authentication. See also java.net.SocketPermission .

java.util.PropertyPermission

Governs access to system properties.

java.lang.reflect.ReflectPermission

Governs access through the java.lang.reflect package to classes and class members that would normally be inaccessible.

java.lang.RuntimePermission

Governs access to a number of methods and resources. Many of the controlled methods are defined by java.lang.System and java.lang.Runtime .

java.security.SecurityPermission

Governs access to various security-related methods.

java.io.SerializablePermission

Governs access to serialization-related methods.

java.net.SocketPermission

Governs access to the network.

java.sql.SQLPermission

Governs the ability to specify logging streams in the java.sql JDBC API.




Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net