Deprecated
for removal since 24.
There is no replacement for this class.
AWTPermission contains 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.
java.security.BasicPermission , java.security.Permission , java.security.Permissions , java.security.PermissionCollection , java.lang.SecurityManager
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.2 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| public | AWTPermission(String
the name of the AWTPermission name)Creates a new |
| public | AWTPermission(String
the name of the name, String AWTPermissionshould be actions)nullCreates a new |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.2 for interoperability. | |
| AWTPermission | back to summary |
|---|---|
| public AWTPermission(String name) Creates a new
| |
| AWTPermission | back to summary |
|---|---|
| public AWTPermission(String name, String actions) Creates a new
| |