Package org.osgi.service.clusterinfo
Class ClusterTagPermission
- java.lang.Object
-
- java.security.Permission
-
- org.osgi.service.clusterinfo.ClusterTagPermission
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Guard
public final class ClusterTagPermission extends java.security.Permission
A bundle's authority to add a tag to a NodeStatus service.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADD
The action stringadd
.
-
Constructor Summary
Constructors Constructor Description ClusterTagPermission(java.lang.String tag, java.lang.String actions)
Defines the authority to add a tag to the NodeStatus service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Determines the equality of twoClusterTagPermission
objects.java.lang.String
getActions()
Returns the canonical string representation of theClusterTagPermission
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 newPermissionCollection
object suitable for storingClusterTagPermission
objects.
-
-
-
Field Detail
-
ADD
public static final java.lang.String ADD
The action stringadd
.- See Also:
- Constant Field Values
-
-
Method Detail
-
implies
public boolean implies(java.security.Permission p)
Determines if the specified permission is implied by this object.This method checks that the tag of the target is implied by the tag name of this object.
- Specified by:
implies
in classjava.security.Permission
- Parameters:
p
- The target permission to interrogate.- Returns:
true
if the specifiedClusterTagPermission
action is implied by this object;false
otherwise.
-
getActions
public java.lang.String getActions()
Returns the canonical string representation of theClusterTagPermission
action.Always returns the ADD action.
- Specified by:
getActions
in classjava.security.Permission
- Returns:
- Canonical string representation of the
ClusterTagPermission
actions.
-
newPermissionCollection
public java.security.PermissionCollection newPermissionCollection()
Returns a newPermissionCollection
object suitable for storingClusterTagPermission
objects.- Overrides:
newPermissionCollection
in classjava.security.Permission
- Returns:
- A new
PermissionCollection
object.
-
equals
public boolean equals(java.lang.Object obj)
Determines the equality of twoClusterTagPermission
objects. This method checks that specifiedClusterTagPermission
has the same tag as thisClusterTagPermission
object.- Specified by:
equals
in classjava.security.Permission
- Parameters:
obj
- The object to test for equality with thisClusterTagPermission
object.- Returns:
true
ifobj
is aClusterTagPermission
, and has the same tag as thisClusterTagPermission
object;false
otherwise.
-
hashCode
public int hashCode()
Returns the hash code value for this object.- Specified by:
hashCode
in classjava.security.Permission
- Returns:
- A hash code value for this object.
-
-