javax.security.auth.kerberos
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, hashCode
checkGuard, getName, toString
public DelegationPermission(String name)
public DelegationPermission(String name, String actions)
name
- the nameactions
- the actions; this is ignoredpublic boolean implies(Permission perm)
BasicPermission
implies
in class BasicPermission
perm
- the Permission
object to test againstpublic PermissionCollection newPermissionCollection()
BasicPermission
PermissionCollection
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 BasicPermission
PermissionCollection
object