APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.attach

public final Class AttachPermission

extends BasicPermission
Class Inheritance
Annotations
@Deprecated
since:25
forRemoval:true

Deprecated

for removal since 25.

This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for this class.

An AttachPermission object contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't.

API Note

This permission cannot be used for controlling access to resources as the Security Manager is no longer supported. Consequently this class is deprecated for removal in a future release.

Since
1.6
See Also
com.sun.tools.attach.VirtualMachine, com.sun.tools.attach.spi.AttachProvider

Field Summary

Modifier and TypeField and Description
pack-priv static final long
serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

use serialVersionUID for interoperability

Constructor Summary

AccessConstructor and Description
public
AttachPermission(String
Permission name. Must be either "attachVirtualMachine", or "createAttachProvider".
name
)

Constructs a new AttachPermission object.

public
AttachPermission(String
Permission name. Must be either "attachVirtualMachine", or "createAttachProvider".
name
,
String
Not used and should be null, or the empty string.
actions
)

Constructs a new AttachPermission object.

Method Summary

Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

use serialVersionUID for interoperability

Constructor Detail

AttachPermissionback to summary
public AttachPermission(String name)

Constructs a new AttachPermission object.

Parameters
name:String

Permission name. Must be either "attachVirtualMachine", or "createAttachProvider".

Exceptions
NullPointerException:
if name is null.
IllegalArgumentException:
if the name is invalid.
AttachPermissionback to summary
public AttachPermission(String name, String actions)

Constructs a new AttachPermission object.

Parameters
name:String

Permission name. Must be either "attachVirtualMachine", or "createAttachProvider".

actions:String

Not used and should be null, or the empty string.

Exceptions
NullPointerException:
if name is null.
IllegalArgumentException:
if arguments are invalid.