Serializable
, Guard
public final class NetworkPermission extends BasicPermission
The following targets are defined:
Permission Target Name | What the Permission Allows | Risks of Allowing this Permission |
---|---|---|
setOption.SO_FLOW_SLA | set the SO_FLOW_SLA option
on any socket that supports it |
allows caller to set a higher priority or bandwidth allocation to sockets it creates, than they might otherwise be allowed. |
getOption.SO_FLOW_SLA | retrieve the SO_FLOW_SLA
setting from any socket that supports the option |
allows caller access to SLA information that it might not otherwise have |
ExtendedSocketOptions
,
Serialized FormConstructor | Description |
---|---|
NetworkPermission(String name) |
Creates a NetworkPermission with the given target name.
|
NetworkPermission(String name,
String actions) |
Creates a NetworkPermission with the given target name.
|
equals, getActions, hashCode, implies, newPermissionCollection
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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. Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2014, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b151-2