javax.security.auth.kerberos
Class DelegationPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
javax.security.auth.kerberos.DelegationPermission
- All Implemented Interfaces:
- Serializable, Guard
public final class DelegationPermission
- extends BasicPermission
- Since:
- 1.4
- See Also:
- Serialized Form
DelegationPermission
public DelegationPermission(String name)
- Create a new instance with the given name.
DelegationPermission
public DelegationPermission(String name,
String actions)
- Create a new instance with the given name and actions.
The name consists of two parts: first the subordinate
service principal, then the target service principal.
Each principal is surrounded by quotes; the two are separated
by a space.
- Parameters:
name
- the nameactions
- the actions; this is ignored
implies
public boolean implies(Permission perm)
- Description copied from class:
BasicPermission
- This method tests to see if the specified permission is implied by this
permission. This will be true if the following conditions are met:
- The specified object is an instance of the same class as this
object.
- The name of the specified permission is implied by this permission's
name based on wildcard matching. For example, "a.*" implies "a.b".
- Overrides:
implies
in class BasicPermission
- Parameters:
perm
- the Permission
object to test against
- Returns:
- true if the specified permission is implied
newPermissionCollection
public PermissionCollection newPermissionCollection()
- Description copied from class:
BasicPermission
- This method returns an instance of
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.
- Overrides:
newPermissionCollection
in class BasicPermission
- Returns:
- a new empty
PermissionCollection
object