public final class ClusterTagPermission
extends java.security.Permission
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADD
The action string
add. |
| Constructor and Description |
|---|
ClusterTagPermission(java.lang.String tag,
java.lang.String actions)
Defines the authority to add a tag to the NodeStatus service.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Determines the equality of two
ClusterTagPermission objects. |
java.lang.String |
getActions()
Returns the canonical string representation of the
ClusterTagPermission action. |
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(java.security.Permission p)
Determines if the specified permission is implied by this object.
|
java.security.PermissionCollection |
newPermissionCollection()
Returns a new
PermissionCollection object suitable for storing
ClusterTagPermission objects. |
public static final java.lang.String ADD
add.public ClusterTagPermission(java.lang.String tag,
java.lang.String actions)
tag - Give permission to add this tag, use * wildcard to give
permission to add any tag.actions - add.public boolean implies(java.security.Permission p)
This method checks that the tag of the target is implied by the tag name of this object.
implies in class java.security.Permissionp - The target permission to interrogate.true if the specified ClusterTagPermission action
is implied by this object; false otherwise.public java.lang.String getActions()
ClusterTagPermission action.
Always returns the ADD action.
getActions in class java.security.PermissionClusterTagPermission actions.public java.security.PermissionCollection newPermissionCollection()
PermissionCollection object suitable for storing
ClusterTagPermission objects.newPermissionCollection in class java.security.PermissionPermissionCollection object.public boolean equals(java.lang.Object obj)
ClusterTagPermission objects. This
method checks that specified ClusterTagPermission has the same
tag as this ClusterTagPermission object.equals in class java.security.Permissionobj - The object to test for equality with this
ClusterTagPermission object.true if obj is a ClusterTagPermission,
and has the same tag as this ClusterTagPermission object;
false otherwise.public int hashCode()
hashCode in class java.security.PermissionCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0