Deprecated
for removal since 17.
This exception was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.
AccessController to
indicate that a requested access was denied.
| Modifier and Type | Field and Description |
|---|---|
| private Permission | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | AccessControlException(String
the detail message. s)Constructs an |
| public | AccessControlException(String
the detail message. s, Permission the permission that caused the exception. p)Constructs an |
| Modifier and Type | Method and Description |
|---|---|
| public Permission | Returns: the Permission object.Gets the |
| perm | back to summary |
|---|---|
| private Permission perm | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| AccessControlException | back to summary |
|---|---|
| public AccessControlException(String s) Constructs an
| |
| AccessControlException | back to summary |
|---|---|
| public AccessControlException(String s, Permission p) Constructs an
| |
| getPermission | back to summary |
|---|---|
| public Permission getPermission() Gets the
| |