Serializable
, Guard
public final class NetworkPermission extends BasicPermission
Constructor | Description |
---|---|
NetworkPermission |
Creates a NetworkPermission with the given target name. |
NetworkPermission |
Creates a NetworkPermission with the given target name. |
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public NetworkPermission(String name)
name
- the permission target nameNullPointerException
- if name
is null
.IllegalArgumentException
- if name
is empty.public NetworkPermission(String name, String actions)
name
- the permission target nameactions
- should be null
. Is ignored if not.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
is empty.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.net/jdk/net/NetworkPermission.html