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.
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.
com.sun.tools.attach.VirtualMachine , com.sun.tools.attach.spi.AttachProvider
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | serialVersionUID
use serialVersionUID for interoperability
|
| Access | Constructor 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 actions)null, or
the empty string.Constructs a new AttachPermission object. |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides java. use serialVersionUID for interoperability | |
| AttachPermission | back to summary |
|---|---|
| public AttachPermission(String name) Constructs a new AttachPermission object.
| |
| AttachPermission | back to summary |
|---|---|
| public AttachPermission(String name, String actions) Constructs a new AttachPermission object.
| |