Additional top-level class in compilation unit: WirePermissionCollection.
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.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private transient int | action_mask
The actions mask. |
| private static final int | |
| private static final int | |
| private volatile String | actions
The actions in canonical form. |
| public static final String | CONSUME
The action string for the |
| public static final String | PRODUCE
The action string for the |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | WirePermission(String
Wire name. name, String produce, consume (canonical order).Create a new WirePermission with the given name (may be wildcard) and actions. |
| pack-priv | WirePermission(String
class name name, int action mask mask)Package private constructor used by WirePermissionCollection. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true ifobj is a WirePermission, and has the same
name and actions as this WirePermission object;
false otherwise.The object to test for equality. obj)Overrides java. Determines the equality of two |
| public String | Returns: The canonical string representation of the actions.Overrides java. Returns the canonical string representation of the actions. |
| pack-priv synchronized int | |
| public int | Returns: Hash code value for this object.Overrides java. Returns the hash code value for this object. |
| public boolean | Returns: true if the specified permission is implied by this
object; false otherwise.The permission to check against. p)Overrides java. Checks if this |
| public PermissionCollection | Returns: A newPermissionCollection object suitable for storing
WirePermission objects.Overrides java. Returns a new |
| private static int | Returns: action mask.Action string. actions)Parse action string into action mask. |
| private synchronized void | readObject(ObjectInputStream
the s)ObjectInputStream from which data is readHides java. readObject is called to restore the state of the ServicePermission from a stream. |
| private synchronized void | |
| public String | Returns: information about thisPermission object.Overrides java. Returns a string describing this |
| private synchronized void | writeObject(ObjectOutputStream s)
WriteObject is called to save the state of the ServicePermission to a stream. |
| ACTION_ALL | back to summary |
|---|---|
| private static final int ACTION_ALL | |
| ACTION_CONSUME | back to summary |
|---|---|
| private static final int ACTION_CONSUME | |
| action_mask | back to summary |
|---|---|
| private transient int action_mask The actions mask. | |
| ACTION_NONE | back to summary |
|---|---|
| private static final int ACTION_NONE | |
| ACTION_PRODUCE | back to summary |
|---|---|
| private static final int ACTION_PRODUCE | |
| actions | back to summary |
|---|---|
| private volatile String actions The actions in canonical form. | |
| CONSUME | back to summary |
|---|---|
| public static final String CONSUME The action string for the | |
| PRODUCE | back to summary |
|---|---|
| public static final String PRODUCE The action string for the | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| WirePermission | back to summary |
|---|---|
| public WirePermission(String name, String actions) Create a new WirePermission with the given name (may be wildcard) and actions. | |
| WirePermission | back to summary |
|---|---|
| pack-priv WirePermission(String name, int mask) Package private constructor used by WirePermissionCollection.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Determines the equality of two | |
| getActions | back to summary |
|---|---|
| public String getActions() Overrides java. Returns the canonical string representation of the actions. Always
returns present actions in the following order: | |
| getActionsMask | back to summary |
|---|---|
| pack-priv synchronized int getActionsMask() Returns the current action mask. Used by the WirePermissionCollection object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this object.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Overrides java. Checks if this
More specifically, this method returns
| |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Returns a new
| |
| parseActions | back to summary |
|---|---|
| private static int parseActions(String actions) Parse action string into action mask.
| |
| readObject | back to summary |
|---|---|
| private synchronized void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException Hides java. readObject is called to restore the state of the ServicePermission from a stream.
| |
| setTransients | back to summary |
|---|---|
| private synchronized void setTransients(int mask) Called by constructors and when deserialized.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string describing this | |
| writeObject | back to summary |
|---|---|
| private synchronized void writeObject(ObjectOutputStream s) throws IOException WriteObject is called to save the state of the ServicePermission to a stream. The actions are serialized, and the superclass takes care of the name. | |