APIdia Launch Partner
Top Description Fields Constructors Methods
java.nio.file

public final Class LinkPermission

extends BasicPermission
Class Inheritance
Annotations
@Deprecated
since:25
forRemoval:true
Imports
java.security.BasicPermission

Deprecated

for removal since 25.

This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

The Permission class for link creation operations.
Since
1.7

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
LinkPermission(String
the name of the permission. It must be "hard" or "symbolic".
name
)

Constructs a LinkPermission with the specified name.

public
LinkPermission(String
the name of the permission; must be "hard" or "symbolic".
name
,
String
the actions for the permission; must be the empty string or null
actions
)

Constructs a LinkPermission with the specified name.

Method Summary

Modifier and TypeMethod and Description
private void
Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

Annotations
@Serial

Constructor Detail

LinkPermissionback to summary
public LinkPermission(String name)

Constructs a LinkPermission with the specified name.

Parameters
name:String

the name of the permission. It must be "hard" or "symbolic".

Exceptions
IllegalArgumentException:
if name is empty or invalid
LinkPermissionback to summary
public LinkPermission(String name, String actions)

Constructs a LinkPermission with the specified name.

Parameters
name:String

the name of the permission; must be "hard" or "symbolic".

actions:String

the actions for the permission; must be the empty string or null

Exceptions
IllegalArgumentException:
if name is empty or invalid, or actions is a non-empty string

Method Detail

checkNameback to summary
private void checkName(String name)