? AlertPermission
java.lang.Object
java.security.Permission
org.osgi.service.dmt.security.AlertPermission
- ????????:
Serializable
,Guard
Indicates the callers authority to send alerts to management servers,
identified by their principal names.
AlertPermission
has a target string which controls the principal
names where alerts can be sent. A wildcard is allowed at the end of the
target string, to allow sending alerts to any principal with a name matching
the given prefix. The "*" target means that alerts can be sent to
any destination.
- ????:
-
?????
????????AlertPermission
(String target) Creates a newAlertPermission
object with its name set to the target string.AlertPermission
(String target, String actions) Creates a newAlertPermission
object using the 'canonical' two argument constructor. -
????
??????????boolean
Checks whether the given object is equal to this AlertPermission instance.Returns the action list (always*
in the current version).int
hashCode()
Returns the hash code for this permission object.boolean
Checks if this AlertPermission object implies the specified permission.Returns a new PermissionCollection object for storing AlertPermission objects.??????? java.security.Permission
checkGuard, getName, toString
-
???????
-
AlertPermission
Creates a newAlertPermission
object with its name set to the target string. Name must be non-null and non-empty.- ??:
target
- the name of a principal, can end with*
to match any principal identifier with the given prefix- ??:
NullPointerException
- ifname
isnull
IllegalArgumentException
- ifname
is empty
-
AlertPermission
Creates a newAlertPermission
object using the 'canonical' two argument constructor. In this version this class does not define any actions, the second argument of this constructor must be "*" so that this class can later be extended in a backward compatible way.- ??:
target
- the name of the server, can end with*
to match any server identifier with the given prefixactions
- no actions defined, must be "*" for forward compatibility- ??:
NullPointerException
- ifname
oractions
isnull
IllegalArgumentException
- ifname
is empty oractions
is not "*"
-
-
??????
-
equals
Checks whether the given object is equal to this AlertPermission instance. Two AlertPermission instances are equal if they have the same target string.- ???:
equals
???Permission
- ??:
obj
- the object to compare to this AlertPermission instance- ??:
true
if the parameter represents the same permissions as this instance
-
getActions
Returns the action list (always*
in the current version).- ???:
getActions
???Permission
- ??:
- the action string "*"
-
hashCode
public int hashCode()Returns the hash code for this permission object. If two AlertPermission objects are equal according to theequals(Object)
method, then calling this method on each of the two AlertPermission objects must produce the same integer result.- ???:
hashCode
???Permission
- ??:
- hash code for this permission object
-
implies
Checks if this AlertPermission object implies the specified permission. Another AlertPermission instance is implied by this permission either if the target strings are identical, or if this target can be made identical to the other target by replacing a trailing "*" with any string.- ???:
implies
???Permission
- ??:
p
- the permission to check for implication- ??:
- true if this AlertPermission instance implies the specified permission
-
newPermissionCollection
Returns a new PermissionCollection object for storing AlertPermission objects.- ??:
newPermissionCollection
???Permission
- ??:
- the new PermissionCollection
-