public final class DelegationPermission extends BasicPermission
| Constructor and Description |
|---|
DelegationPermission(String name)
Create a new instance with the given name.
|
DelegationPermission(String name,
String actions)
Create a new instance with the given name and actions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
implies(Permission perm)
This method tests to see if the specified permission is implied by this
permission.
|
PermissionCollection |
newPermissionCollection()
This method returns an instance of
PermissionCollection
suitable for storing BasicPermission objects. |
equals, getActions, hashCodecheckGuard, getName, toStringpublic DelegationPermission(String name)
public DelegationPermission(String name, String actions)
name - the nameactions - the actions; this is ignoredpublic boolean implies(Permission perm)
BasicPermissionimplies in class BasicPermissionperm - the Permission object to test againstpublic PermissionCollection newPermissionCollection()
BasicPermissionPermissionCollection
suitable for storing BasicPermission objects. The
collection returned can only store objects of the same type as this.
Subclasses which use actions must override this method; but a class with
no actions will work fine with this.newPermissionCollection in class BasicPermissionPermissionCollection object