GeezerVison is showing docs.oracle.com — BasicPermission (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.security
Class BasicPermission
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
boolean |
equals(Object obj) |
Checks two BasicPermission objects for equality.
|
String |
getActions() |
Returns the canonical string representation of the actions,
which currently is the empty string "", since there are no actions for
a BasicPermission.
|
int |
hashCode() |
Returns the hash code value for this object.
|
boolean |
implies(Permission p) |
Checks if the specified permission is "implied" by
this object.
|
PermissionCollection |
newPermissionCollection() |
Returns a new PermissionCollection object for storing BasicPermission
objects.
|
-
-
Constructor Detail
-
BasicPermission
public BasicPermission(String name)
Creates a new BasicPermission with the specified name.
Name is the symbolic name of the permission, such as
"setFactory",
"print.queueJob", or "topLevelWindow", etc.
- Parameters:
name - the name of the BasicPermission.
- Throws:
NullPointerException - if name is null.
IllegalArgumentException - if name is empty.
-
BasicPermission
public BasicPermission(String name,
String actions)
Creates a new BasicPermission object with the specified name.
The name is the symbolic name of the BasicPermission, and the
actions String is currently unused.
- Parameters:
name - the name of the BasicPermission.
actions - ignored.
- Throws:
NullPointerException - if name is null.
IllegalArgumentException - if name is empty.
-
Method Detail
-
getActions
public String getActions()
Returns the canonical string representation of the actions,
which currently is the empty string "", since there are no actions for
a BasicPermission.
- Specified by:
getActions in class Permission
- Returns:
- the empty string "".
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|