FileDocCategorySizeDatePackage
LoggingPermission.javaAPI DocJava SE 6 API1958Tue Jun 10 00:25:58 BST 2008java.util.logging

LoggingPermission

public final class LoggingPermission extends BasicPermission
The permission which the SecurityManager will check when code that is running with a SecurityManager calls one of the logging control methods (such as Logger.setLevel).

Currently there is only one named LoggingPermission. This is "control" and it grants the ability to control the logging configuration, for example by adding or removing Handlers, by adding or removing Filters, or by changing logging levels.

Programmers do not normally create LoggingPermission objects directly. Instead they are created by the security policy code based on reading the security policy file.

version
1.11, 04/21/06
since
1.4
see
java.security.BasicPermission
see
java.security.Permission
see
java.security.Permissions
see
java.security.PermissionCollection
see
java.lang.SecurityManager

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public LoggingPermission(String name, String actions)
Creates a new LoggingPermission object.

param
name Permission name. Must be "control".
param
actions Must be either null or the empty string.
throws
NullPointerException if name is null.
throws
IllegalArgumentException if name is empty or if arguments are invalid.


                                                 
           
        super(name);
	if (!name.equals("control")) {
	    throw new IllegalArgumentException("name: " + name);
	}
	if (actions != null && actions.length() > 0) {
	    throw new IllegalArgumentException("actions: " + actions);
	}
    
Methods Summary