| 
OSGi™ Compendium Release 5  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
org.osgi.service.dmt.security.AlertPermission
public class AlertPermission
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.
| Constructor Summary | |
|---|---|
AlertPermission(java.lang.String target)
Creates a new AlertPermission object with its name set to the
 target string. | 
|
AlertPermission(java.lang.String target,
                java.lang.String actions)
Creates a new AlertPermission object using the 'canonical' two
 argument constructor. | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(java.lang.Object obj)
Checks whether the given object is equal to this AlertPermission instance.  | 
 java.lang.String | 
getActions()
Returns the action list (always * in the current version). | 
 int | 
hashCode()
Returns the hash code for this permission object.  | 
 boolean | 
implies(java.security.Permission p)
Checks if this AlertPermission object implies the specified permission.  | 
 java.security.PermissionCollection | 
newPermissionCollection()
Returns a new PermissionCollection object for storing AlertPermission objects.  | 
| Methods inherited from class java.security.Permission | 
|---|
checkGuard, getName | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AlertPermission(java.lang.String target)
AlertPermission 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
java.lang.NullPointerException - if name is null
java.lang.IllegalArgumentException - if name is empty
public AlertPermission(java.lang.String target,
                       java.lang.String actions)
AlertPermission 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
java.lang.NullPointerException - if name or actions is
         null
java.lang.IllegalArgumentException - if name is empty or
         actions is not "*"| Method Detail | 
|---|
public boolean equals(java.lang.Object obj)
equals in class java.security.Permissionobj - the object to compare to this AlertPermission instance
true if the parameter represents the same permissions as
         this instancepublic java.lang.String getActions()
* in the current version).
getActions in class java.security.Permissionpublic int hashCode()
equals(Object) method, then
 calling this method on each of the two AlertPermission objects must
 produce the same integer result.
hashCode in class java.security.Permissionpublic boolean implies(java.security.Permission p)
implies in class java.security.Permissionp - the permission to check for implication
public java.security.PermissionCollection newPermissionCollection()
newPermissionCollection in class java.security.Permission
  | 
OSGi™ Compendium Release 5  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||