javax.security.auth.kerberos
Class DelegationPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by javax.security.auth.kerberos.DelegationPermission
All Implemented Interfaces:
Serializable, Guard

public final class DelegationPermission
extends BasicPermission

Since:
1.4
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode
 
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

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 name
actions - the actions; this is ignored
Method Detail

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:

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