Additional top-level classes in compilation unit: SignerProperty, CoordinationPermissionCollection.
Coordination.
CoordinationPermission has three actions: initiate,
participate and admin.
| 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. |
| public static final String | ADMIN
The action string |
| pack-priv final transient Bundle | bundle
The bundle used by this CoordinationPermission. |
| pack-priv transient Filter | filter
If this CoordinationPermission was constructed with a filter, this holds a Filter matching object used to evaluate the filter in implies. |
| public static final String | INITIATE
The action string |
| public static final String | PARTICIPATE
The action string |
| private transient volatile Map | properties
This map holds the properties of the permission, used to match a filter in implies. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | CoordinationPermission(String
A filter expression. Filter attribute names are processed
in a case sensitive manner. A special value of filter, String "*" can be
used to match all coordinations.admin, initiate or participate
(canonical order).Creates a new granted |
| public | CoordinationPermission(String
The name of the requested Coordination. coordinationName, Bundle The bundle which
coordinationBundle, String created the requested
Coordination.admin, initiate or participate
(canonical order).Creates a new requested |
| pack-priv | CoordinationPermission(Filter
name filter filter, int action mask mask)Package private constructor used by CoordinationPermissionCollection. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if obj is a CoordinationPermission,
and has the same name and actions as this
CoordinationPermission object; false otherwise.The object to test for equality with this
obj)CoordinationPermission object.Overrides java. Determines the equality of two |
| public String | Returns: Canonical string representation of theCoordinationPermission actions.Overrides java. Returns the canonical string representation of the
|
| private Map | Returns: a map of properties for this permission.Called by |
| public int | Returns: A 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 requested permission. p)Overrides java. Determines if the specified permission is implied by this object. |
| pack-priv boolean | Returns: true if the specified permission is implied by this
object; false otherwise.The requested CoordinationPermission which has already
be validated as a proper argument. The requested
CoordinationPermission 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.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
the s)ObjectInputStream from which data is readHides java. readObject is called to restore the state of this permission from a stream. |
| private void | setTransients(Filter
Permission's filter or filter, int null for wildcard.action mask mask)Called by constructors and when deserialized. |
| private synchronized void | writeObject(ObjectOutputStream s)
WriteObject is called to save the state of this permission object to a stream. |
| ACTION_ADMIN | back to summary |
|---|---|
| private static final int ACTION_ADMIN | |
| ACTION_ALL | back to summary |
|---|---|
| private static final int ACTION_ALL | |
| ACTION_INITIATE | back to summary |
|---|---|
| private static final int ACTION_INITIATE | |
| 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_PARTICIPATE | back to summary |
|---|---|
| private static final int ACTION_PARTICIPATE | |
| actions | back to summary |
|---|---|
| private volatile String actions The actions in canonical form. | |
| ADMIN | back to summary |
|---|---|
| public static final String ADMIN The action string | |
| bundle | back to summary |
|---|---|
| pack-priv final transient Bundle bundle The bundle used by this CoordinationPermission. | |
| filter | back to summary |
|---|---|
| pack-priv transient Filter filter If this CoordinationPermission was constructed with a filter, this holds a Filter matching object used to evaluate the filter in implies. | |
| INITIATE | back to summary |
|---|---|
| public static final String INITIATE The action string | |
| PARTICIPATE | back to summary |
|---|---|
| public static final String PARTICIPATE The action string | |
| properties | back to summary |
|---|---|
| private transient volatile Map<String, Object> properties This map holds the properties of the permission, used to match a filter in implies. This is not initialized until necessary, and then cached in this object. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CoordinationPermission | back to summary |
|---|---|
| public CoordinationPermission(String filter, String actions) Creates a new granted Examples: (coordination.name=com.acme.*) (&(signer=\*,o=ACME,c=US)(coordination.name=com.acme.*)) (signer=\*,o=ACME,c=US) When a signer key is used within the filter expression the signer value must escape the special filter chars ('*', '(', ')'). The name is specified as a filter expression. The filter gives access to the following attributes:
| |
| CoordinationPermission | back to summary |
|---|---|
| public CoordinationPermission(String coordinationName, Bundle coordinationBundle, String actions) Creates a new requested | |
| CoordinationPermission | back to summary |
|---|---|
| pack-priv CoordinationPermission(Filter filter, int mask) Package private constructor used by CoordinationPermissionCollection.
| |
| 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
Always returns present | |
| getProperties | back to summary |
|---|---|
| private Map Called by | |
| 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. Determines if the specified permission is implied by this object.
This method checks that the filter of the target is implied by the
coordination name of this object. The list of
| |
| implies0 | back to summary |
|---|---|
| pack-priv boolean implies0(CoordinationPermission 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 Hides java. readObject is called to restore the state of this permission from a stream.
| |
| setTransients | back to summary |
|---|---|
| private void setTransients(Filter filter, 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 object to a stream. The actions are serialized, and the superclass takes care of the name. | |