public final class DiscoveryPermission extends Permission implements Serializable
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 and Description |
---|
DiscoveryPermission(String group)
Simple constructor.
|
DiscoveryPermission(String group,
String action)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
checkGuard, getName, toString
public DiscoveryPermission(String group)
group
- the group name (wildcard permitted)public boolean implies(Permission p)
implies
in class Permission
public boolean equals(Object obj)
equals
in class Permission
public int hashCode()
hashCode
in class Permission
public String getActions()
getActions
in class Permission
public PermissionCollection newPermissionCollection()
newPermissionCollection
in class Permission
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.