|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.security.auth.kerberos
|
Constructor Summary | |
---|---|
DelegationPermission(String principals)
Create a new DelegationPermission
with the specified subordinate and target principals. |
|
DelegationPermission(String principals,
String actions)
Create a new DelegationPermission
with the specified subordinate and target principals. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Checks two DelegationPermission objects for equality. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(Permission p)
Checks if this Kerberos delegation permission object "implies" the specified permission. |
PermissionCollection |
newPermissionCollection()
Returns a PermissionCollection object for storing DelegationPermission objects. |
Methods inherited from class java.security.BasicPermission |
---|
getActions |
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 DelegationPermission(String principals)
DelegationPermission
with the specified subordinate and target principals.
principals
- the name of the subordinate and target principals
NullPointerException
- if principals
is null
.
IllegalArgumentException
- if principals
is empty.public DelegationPermission(String principals, String actions)
DelegationPermission
with the specified subordinate and target principals.
principals
- the name of the subordinate and target principals
actions
- should be null.
NullPointerException
- if principals
is null
.
IllegalArgumentException
- if principals
is empty.Method Detail |
---|
public boolean implies(Permission p)
If none of the above are true, implies
returns false.
implies
in class BasicPermission
p
- the permission to check against.
public boolean equals(Object obj)
equals
in class BasicPermission
obj
- the object to test for equality with this object.
Object.hashCode()
,
Hashtable
public int hashCode()
hashCode
in class BasicPermission
Object.equals(java.lang.Object)
,
Hashtable
public PermissionCollection newPermissionCollection()
newPermissionCollection
in class BasicPermission