FileDocCategorySizeDatePackage
LoggingPermission.javaAPI DocJava SE 5 API1829Fri Aug 26 14:57:28 BST 2005java.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.9, 12/19/03
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
IllegalArgumentException 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