FileDocCategorySizeDatePackage
LoggingPermission.javaAPI DocAndroid 1.5 API2737Wed May 06 22:41:04 BST 2009java.util.logging

LoggingPermission

public final class LoggingPermission extends BasicPermission implements Serializable, Guard
The permission required to control the logging when run with a {@code SecurityManager}.

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public LoggingPermission(String name, String actions)
Constructs a {@code LoggingPermission} object required to control the logging. The {@code SecurityManager} checks the permissions.

{@code LoggingPermission} objects are created by the security policy code and depends on the security policy file, therefore programmers shouldn't normally use them directly.

param
name currently must be "control".
param
actions currently must be either {@code null} or the empty string.
throws
IllegalArgumentException if name null or different from {@code string} control.

    
    
    /*
     * -------------------------------------------------------------------
     * Constructors
     * -------------------------------------------------------------------
     */

                                                                                                                   
         
        super(name, actions);
        if (!"control".equals(name)) { //$NON-NLS-1$
            // logging.6=Name must be "control".
            throw new IllegalArgumentException(Messages.getString("logging.6")); //$NON-NLS-1$
        }
        if (null != actions && !"".equals(actions)) { //$NON-NLS-1$
            // logging.7=Actions must be either null or the empty string.
            throw new IllegalArgumentException(Messages.getString("logging.7")); //$NON-NLS-1$
        }
    
Methods Summary