|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.Permission
javax.security.auth.kerberos.ServicePermission
public final class ServicePermission
This represents permission to access to a Kerberos service principal. See the Kerberos authentication RFC for more information: RFC 1510.
| Constructor Summary | |
|---|---|
ServicePermission(String name,
String action)
Create a new service permission with the indicated name and actions. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Check to see if this object equals obj. |
String |
getActions()
Return a string representing the actions. |
int |
hashCode()
This method returns a hash code for this Permission. |
boolean |
implies(Permission perm)
This method tests whether this Permission implies that the
specified Permission is also granted. |
PermissionCollection |
newPermissionCollection()
This method returns an empty PermissionCollection object
that can store permissions of this type, or null if no
such collection is defined. |
| 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 ServicePermission(String name,
String action)
name - the prinicpal's nameaction - the allowed actions| Method Detail |
|---|
public boolean implies(Permission perm)
PermissionPermission implies that the
specified Permission is also granted.
implies in class Permissionperm - the Permission to test against
public boolean equals(Object obj)
Permissionimplies, rather
than equals, when making access control decisions.
equals in class Permissionobj - the object to compare to
Object.hashCode()public int hashCode()
PermissionPermission. It
must satisfy the contract of Object.hashCode: it must be
the same for all objects that equals considers to be the same.
hashCode in class PermissionObject.equals(Object),
System.identityHashCode(Object)public String getActions()
getActions in class PermissionPermissionpublic PermissionCollection newPermissionCollection()
PermissionPermissionCollection object
that can store permissions of this type, or null if no
such collection is defined. Subclasses must override this to provide
an appropriate collection when one is needed to accurately calculate
implies.
newPermissionCollection in class PermissionPermissionCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||