386 * <td>This grants the permission to access resources in the
387 * {@linkplain ModuleFinder#ofSystem system modules} in the runtime image.</td>
388 * </tr>
389 *
390 * </tbody>
391 * </table>
392 *
393 * @implNote
394 * Implementations may define additional target names, but should use naming
395 * conventions such as reverse domain name notation to avoid name clashes.
396 *
397 * @see java.security.BasicPermission
398 * @see java.security.Permission
399 * @see java.security.Permissions
400 * @see java.security.PermissionCollection
401 * @see java.lang.SecurityManager
402 *
403 *
404 * @author Marianne Mueller
405 * @author Roland Schemers
406 */
407
408 public final class RuntimePermission extends BasicPermission {
409
410 private static final long serialVersionUID = 7399184964622342223L;
411
412 /**
413 * Creates a new RuntimePermission with the specified name.
414 * The name is the symbolic name of the RuntimePermission, such as
415 * "exit", "setFactory", etc. An asterisk
416 * may appear at the end of the name, following a ".", or by itself, to
417 * signify a wildcard match.
418 *
419 * @param name the name of the RuntimePermission.
420 *
421 * @throws NullPointerException if <code>name</code> is <code>null</code>.
422 * @throws IllegalArgumentException if <code>name</code> is empty.
423 */
424
425 public RuntimePermission(String name)
|
386 * <td>This grants the permission to access resources in the
387 * {@linkplain ModuleFinder#ofSystem system modules} in the runtime image.</td>
388 * </tr>
389 *
390 * </tbody>
391 * </table>
392 *
393 * @implNote
394 * Implementations may define additional target names, but should use naming
395 * conventions such as reverse domain name notation to avoid name clashes.
396 *
397 * @see java.security.BasicPermission
398 * @see java.security.Permission
399 * @see java.security.Permissions
400 * @see java.security.PermissionCollection
401 * @see java.lang.SecurityManager
402 *
403 *
404 * @author Marianne Mueller
405 * @author Roland Schemers
406 * @since 1.2
407 */
408
409 public final class RuntimePermission extends BasicPermission {
410
411 private static final long serialVersionUID = 7399184964622342223L;
412
413 /**
414 * Creates a new RuntimePermission with the specified name.
415 * The name is the symbolic name of the RuntimePermission, such as
416 * "exit", "setFactory", etc. An asterisk
417 * may appear at the end of the name, following a ".", or by itself, to
418 * signify a wildcard match.
419 *
420 * @param name the name of the RuntimePermission.
421 *
422 * @throws NullPointerException if <code>name</code> is <code>null</code>.
423 * @throws IllegalArgumentException if <code>name</code> is empty.
424 */
425
426 public RuntimePermission(String name)
|