1 /*
2 * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
361 * <tr>
362 * <th scope="row">loggerFinder</th>
363 * <td>This {@code RuntimePermission} is required to be granted to
364 * classes which subclass or call methods on
365 * {@code java.lang.System.LoggerFinder}. The permission is
366 * checked during invocation of the abstract base class constructor, as
367 * well as on the invocation of its public methods.
368 * This permission ensures trust in classes which provide loggers
369 * to system classes.</td>
370 * <td>See {@link java.lang.System.LoggerFinder java.lang.System.LoggerFinder}
371 * for more information.</td>
372 * </tr>
373 *
374 * <tr>
375 * <th scope="row">accessSystemModules</th>
376 * <td>Access system modules in the runtime image.</td>
377 * <td>This grants the permission to access resources in the
378 * {@linkplain ModuleFinder#ofSystem system modules} in the runtime image.</td>
379 * </tr>
380 *
381 * </tbody>
382 * </table>
383 *
384 * @implNote
385 * Implementations may define additional target names, but should use naming
386 * conventions such as reverse domain name notation to avoid name clashes.
387 *
388 * @see java.security.BasicPermission
389 * @see java.security.Permission
390 * @see java.security.Permissions
391 * @see java.security.PermissionCollection
392 * @see java.lang.SecurityManager
393 *
394 *
395 * @author Marianne Mueller
396 * @author Roland Schemers
397 * @since 1.2
398 */
399
400 public final class RuntimePermission extends BasicPermission {
|
1 /*
2 * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
361 * <tr>
362 * <th scope="row">loggerFinder</th>
363 * <td>This {@code RuntimePermission} is required to be granted to
364 * classes which subclass or call methods on
365 * {@code java.lang.System.LoggerFinder}. The permission is
366 * checked during invocation of the abstract base class constructor, as
367 * well as on the invocation of its public methods.
368 * This permission ensures trust in classes which provide loggers
369 * to system classes.</td>
370 * <td>See {@link java.lang.System.LoggerFinder java.lang.System.LoggerFinder}
371 * for more information.</td>
372 * </tr>
373 *
374 * <tr>
375 * <th scope="row">accessSystemModules</th>
376 * <td>Access system modules in the runtime image.</td>
377 * <td>This grants the permission to access resources in the
378 * {@linkplain ModuleFinder#ofSystem system modules} in the runtime image.</td>
379 * </tr>
380 *
381 * <tr>
382 * <th scope="row">inetAddressResolverProvider</th>
383 * <td>This {@code RuntimePermission} is required to be granted to
384 * classes which subclass and implement {@code java.net.spi.InetAddressResolverProvider}.
385 * The permission is checked during invocation of the abstract base class constructor.
386 * This permission ensures trust in classes which provide resolvers used by
387 * {@link java.net.InetAddress} hostname and address resolution methods.</td>
388 * <td>See {@link java.net.spi.InetAddressResolverProvider} for more information.</td>
389 * </tr>
390 *
391 * </tbody>
392 * </table>
393 *
394 * @implNote
395 * Implementations may define additional target names, but should use naming
396 * conventions such as reverse domain name notation to avoid name clashes.
397 *
398 * @see java.security.BasicPermission
399 * @see java.security.Permission
400 * @see java.security.Permissions
401 * @see java.security.PermissionCollection
402 * @see java.lang.SecurityManager
403 *
404 *
405 * @author Marianne Mueller
406 * @author Roland Schemers
407 * @since 1.2
408 */
409
410 public final class RuntimePermission extends BasicPermission {
|