|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
net.jini.discovery.DiscoveryPermission
Permission for using LookupDiscovery. The permission contains a name but no actions list. The name is a discovery group name. The empty string represents the "public" group (as usual). The name "*" represents all groups. The name can start with "*." to signify a prefix wildcard match; in this case, group names are assumed to be in dotted domain name style (e.g., "*.sun.com").
Note that, due to limitations of the Java(TM) platform security model, permission must be granted not only to the code that calls LookupDiscovery, but also to LookupDiscovery itself.
LookupDiscovery
,
Serialized FormConstructor Summary | |
DiscoveryPermission(String group)
Simple constructor. |
|
DiscoveryPermission(String group,
String action)
Simple constructor. |
Method Summary | |
boolean |
equals(Object obj)
Two instances are equal if they have the same name. |
String |
getActions()
Always returns the empty string; this permission type has no actions list. |
int |
hashCode()
|
boolean |
implies(Permission p)
Returns true if the name of this permission (the one on which the method is invoked) is the same as the name of the permission parameter, or if the name of this permission starts with '*' and the remainder (after the '*') is a suffix of the name of the permission parameter. |
PermissionCollection |
newPermissionCollection()
|
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 DiscoveryPermission(String group)
group
- the group name (wildcard permitted)public DiscoveryPermission(String group, String action)
group
- the group name (wildcard permitted)action
- ignoredMethod Detail |
public boolean implies(Permission p)
public boolean equals(Object obj)
public int hashCode()
public String getActions()
public PermissionCollection newPermissionCollection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |