Package org.osgi.service.cm
Class ConfigurationPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.osgi.service.cm.ConfigurationPermission
- All Implemented Interfaces:
Serializable
,Guard
Indicates a bundle's authority to configure bundles.
This permission has only a single action: CONFIGURE.
- Since:
- 1.2
- Version:
- $Revision: 6381 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationPermission
(String name, String actions) Create a new ConfigurationPermission. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines the equality of twoConfigurationPermission
objects.Returns the canonical string representation of theConfigurationPermission
actions.int
hashCode()
Returns the hash code value for this object.boolean
Determines if aConfigurationPermission
object "implies" the specified permission.Returns a newPermissionCollection
object suitable for storingConfigurationPermission
s.Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
Field Details
-
CONFIGURE
The action stringconfigure
.- See Also:
-
TARGET
The permission to be updated, that is, act as a Managed Service or Managed Service Factory. The action string "target".- Since:
- 1.4
- See Also:
-
-
Constructor Details
-
ConfigurationPermission
Create a new ConfigurationPermission.- Parameters:
name
- Name must be "*".actions
-configure
(canonical order).
-
-
Method Details
-
implies
Determines if aConfigurationPermission
object "implies" the specified permission.- Overrides:
implies
in classBasicPermission
- Parameters:
p
- The target permission to check.- Returns:
true
if the specified permission is implied by this object;false
otherwise.
-
equals
Determines the equality of twoConfigurationPermission
objects.Two
ConfigurationPermission
objects are equal.- Overrides:
equals
in classBasicPermission
- Parameters:
obj
- The object being compared for equality with this object.- Returns:
true
ifobj
is equivalent to thisConfigurationPermission
;false
otherwise.
-
hashCode
public int hashCode()Returns the hash code value for this object.- Overrides:
hashCode
in classBasicPermission
- Returns:
- Hash code value for this object.
-
getActions
Returns the canonical string representation of theConfigurationPermission
actions.Always returns present
ConfigurationPermission
actions in the following order:CONFIGURE
- Overrides:
getActions
in classBasicPermission
- Returns:
- Canonical string representation of the
ConfigurationPermission
actions.
-
newPermissionCollection
Returns a newPermissionCollection
object suitable for storingConfigurationPermission
s.- Overrides:
newPermissionCollection
in classBasicPermission
- Returns:
- A new
PermissionCollection
object.
-