|
OSGi Service Platform Release 3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.security.Permission
|
+--java.security.BasicPermission
|
+--org.osgi.service.wireadmin.WirePermission
Permission for the scope of a Wire object. When a Envelope object is used for communication with the poll or update method, and the scope is set, then the Wire object must verify that the Consumer service has WirePermission[name,CONSUME] and the Producer service has WirePermission[name,PRODUCE] for all names in the scope.
The names are compared with the normal rules for permission names. This means that they may end with a "*" to indicate wildcards. E.g. Door.* indicates all scope names starting with the string "Door". The last period is required due to the implementations of the BasicPermission class.
| Field Summary | |
|---|---|
static java.lang.String |
CONSUME
The action string for the CONSUME action: value is "consume". |
static java.lang.String |
PRODUCE
The action string for the PRODUCE action: value is "produce". |
| Constructor Summary | |
|---|---|
WirePermission(java.lang.String name,
java.lang.String actions)
Create a new WirePermission with the given name (may be wildcard) and actions. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Determines the equalty of two WirePermission objects. |
java.lang.String |
getActions()
Returns the canonical string representation of the actions. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(java.security.Permission p)
Checks if this WirePermission object implies the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WirePermission objects. |
java.lang.String |
toString()
Returns a string describing this WirePermission. |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String PRODUCE
public static final java.lang.String CONSUME
| Constructor Detail |
public WirePermission(java.lang.String name,
java.lang.String actions)
| Method Detail |
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
implies in class java.security.BasicPermissionp - The permission to check against.public java.lang.String getActions()
getActions in class java.security.BasicPermissionpublic java.security.PermissionCollection newPermissionCollection()
newPermissionCollection in class java.security.BasicPermissionpublic boolean equals(java.lang.Object obj)
equals in class java.security.BasicPermissionobj - The object to test for equality.public int hashCode()
hashCode in class java.security.BasicPermissionpublic java.lang.String toString()
toString in class java.security.Permission
|
OSGi Service Platform Release 3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||