@Exported 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 and 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
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.
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.