Additional top-level class in compilation unit: EndpointPermissionCollection.
export action allows a bundle to export a service as an
Endpoint.import action allows a bundle to import a service from an
Endpoint.read action allows a bundle to read references to an
Endpoint.EndpointPermission to read the specific service.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv transient int | action_mask
The actions mask. |
| pack-priv static final int | |
| private static final int | |
| private volatile String | actions
The actions in canonical form. |
| pack-priv final transient EndpointDescription | endpoint
The endpoint used by this EndpointPermission. |
| public static final String | EXPORT
The action string |
| pack-priv transient Filter | filter
If this EndpointPermission was not constructed with an
EndpointDescription, this holds a Filter matching object used to evaluate
the filter in implies or |
| public static final String | IMPORT
The action string |
| private final transient Dictionary | properties
This dictionary holds the properties of the permission, used to match a filter in implies. |
| public static final String | READ
The action string |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | EndpointPermission(String
The filter string or "*" to match all
endpoints. filterString, String The actions actions)read, import, or
export.Create a new EndpointPermission with the specified filter. |
| public | EndpointPermission(EndpointDescription
The requested endpoint. endpoint, String The UUID of the local framework. This is used
to support matching the
localFrameworkUUID, String endpoint. endpoint property to the
<<LOCAL>> value in the filter expression.The actions actions)read, import, or
export.Creates a new requested |
| pack-priv | EndpointPermission(String
class name name, int action mask mask)Package private constructor used by EndpointPermissionCollection. |
| Modifier and Type | Method and Description |
|---|---|
| private static String | Returns: permission name.EndpointDescription to use to create permission name. endpoint)Create a permission name from a EndpointDescription. |
| public boolean | Returns: true If obj is aEndpointPermission, and has the same
name, actions and endpoint as this EndpointPermission
object; false otherwise.The object to test for equality. obj)Implements abstract java. Determines the equality of two EndpointPermission objects. |
| public String | Returns: The canonical string representation of the actions.Implements abstract java. Returns the canonical string representation of the actions. |
| private Dictionary | Returns: a dictionary of properties for this permission.Called by |
| public int | Returns: Hash code value for this object.Implements abstract 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 target permission to check. p)Implements abstract java. Determines if a |
| pack-priv boolean | Returns: true if the specified permission is implied by this
object; false otherwise.The requested EndpointPermission which has already be
validated as a proper argument. The requested EndpointPermission
must not have a filter expression. requested, int The effective actions with which to start. effective)Internal implies method. |
| public PermissionCollection | Returns: A newPermissionCollection object suitable for storing
EndpointPermission objects.Overrides java. Returns a new |
| private static int | Returns: action mask.Action string. actions)Parse action string into action mask. |
| private static Filter | Returns: a Filter for this bundle.The filter string to parse. filterString)Parse filter string into a Filter object. |
| private synchronized void | readObject(ObjectInputStream s)
readObject is called to restore the state of this permission from a stream. |
| private void | |
| private synchronized void | writeObject(ObjectOutputStream s)
WriteObject is called to save the state of this permission to a stream. |
| ACTION_ALL | back to summary |
|---|---|
| private static final int ACTION_ALL | |
| ACTION_EXPORT | back to summary |
|---|---|
| private static final int ACTION_EXPORT | |
| ACTION_IMPORT | back to summary |
|---|---|
| private static final int ACTION_IMPORT | |
| action_mask | back to summary |
|---|---|
| pack-priv transient int action_mask The actions mask. | |
| ACTION_NONE | back to summary |
|---|---|
| pack-priv static final int ACTION_NONE | |
| ACTION_READ | back to summary |
|---|---|
| private static final int ACTION_READ | |
| actions | back to summary |
|---|---|
| private volatile String actions The actions in canonical form. | |
| endpoint | back to summary |
|---|---|
| pack-priv final transient EndpointDescription endpoint The endpoint used by this EndpointPermission. Must be | |
| EXPORT | back to summary |
|---|---|
| public static final String EXPORT The action string | |
| filter | back to summary |
|---|---|
| pack-priv transient Filter filter If this EndpointPermission was not constructed with an
EndpointDescription, this holds a Filter matching object used to evaluate
the filter in implies or | |
| IMPORT | back to summary |
|---|---|
| public static final String IMPORT The action string | |
| properties | back to summary |
|---|---|
| private final transient Dictionary<String, Object> properties This dictionary holds the properties of the permission, used to match a filter in implies. | |
| READ | back to summary |
|---|---|
| public static final String READ The action string | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| EndpointPermission | back to summary |
|---|---|
| public EndpointPermission(String filterString, String actions) Create a new EndpointPermission with the specified filter. The filter will be evaluated against the endpoint properties of a requested EndpointPermission.
There are three possible actions:
| |
| EndpointPermission | back to summary |
|---|---|
| public EndpointPermission(EndpointDescription endpoint, String localFrameworkUUID, String actions) Creates a new requested
| |
| EndpointPermission | back to summary |
|---|---|
| pack-priv EndpointPermission(String name, int mask) Package private constructor used by EndpointPermissionCollection.
| |
| createName | back to summary |
|---|---|
| private static String createName(EndpointDescription endpoint) Create a permission name from a EndpointDescription.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract java. Determines the equality of two EndpointPermission objects.
Checks that specified object has the same name, actions and endpoint as
this | |
| getActions | back to summary |
|---|---|
| public String getActions() Implements abstract java. Returns the canonical string representation of the actions. Always
returns present actions in the following canonical order: | |
| getProperties | back to summary |
|---|---|
| private Dictionary Called by
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Returns the hash code value for this object.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Implements abstract java. Determines if a
| |
| implies0 | back to summary |
|---|---|
| pack-priv boolean implies0(EndpointPermission requested, int effective) Internal implies method. Used by the implies and the permission collection implies methods.
| |
| 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.
| |
| parseFilter | back to summary |
|---|---|
| private static Filter parseFilter(String filterString) Parse filter string into a Filter object.
| |
| readObject | back to summary |
|---|---|
| private synchronized void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException readObject is called to restore the state of this permission from a stream. | |
| setTransients | back to summary |
|---|---|
| private void setTransients(Filter f, int mask) Called by constructors and when deserialized.
| |
| writeObject | back to summary |
|---|---|
| private synchronized void writeObject(ObjectOutputStream s) throws IOException WriteObject is called to save the state of this permission to a stream. The actions are serialized, and the superclass takes care of the name. | |