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.
/*
* -------------------------------------------------------------------
* 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$
}