|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.Permission
java.security.AllPermission
public final class AllPermission
This class is a permission that implies all other permissions. Granting this permission effectively grants all others. Extreme caution should be exercised in granting this permission.
AccessController,
Permissions,
SecurityManager,
Serialized Form| Constructor Summary | |
|---|---|
AllPermission()
Create a new AllPermission object. |
|
AllPermission(String name,
String actions)
Create a new AllPermission object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Checks an object for equality. |
String |
getActions()
This method returns the list of actions associated with this object. |
int |
hashCode()
This method returns a hash code for this object. |
boolean |
implies(Permission perm)
This method always returns true to indicate that this
permission always implies that any other permission is also granted. |
PermissionCollection |
newPermissionCollection()
Returns a PermissionCollection which can hold AllPermission. |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AllPermission()
public AllPermission(String name,
String actions)
name - ignoredactions - ignored| Method Detail |
|---|
public boolean implies(Permission perm)
true to indicate that this
permission always implies that any other permission is also granted.
implies in class Permissionperm - ignored
public boolean equals(Object obj)
equals in class Permissionobj - the Object to test for equality
Object.hashCode()public int hashCode()
hashCode in class PermissionObject.equals(Object),
System.identityHashCode(Object)public String getActions()
getActions in class Permissionpublic PermissionCollection newPermissionCollection()
newPermissionCollection in class Permission
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||