Additional top-level class in compilation unit: AdaptPermissionCollection.
AdaptPermission has one action: adapt.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| pack-priv transient int | action_mask
The actions mask. |
| pack-priv static final int | |
| private volatile String | actions
The actions in canonical form. |
| public static final String | ADAPT
The action string |
| pack-priv final transient Bundle | bundle
The bundle used by this AdaptPermission. |
| pack-priv transient Filter | filter
This holds a Filter matching object used to evaluate the filter in implies. |
| 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 | AdaptPermission(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 adaptations.adapt.Creates a new granted |
| public | AdaptPermission(String
The name of the type to which an object can be adapted. adaptClass, Bundle The bundle associated with the object being
adapted. adaptableBundle, String adapt.Creates a new requested |
| pack-priv | AdaptPermission(Filter
name filter filter, int action mask mask)Package private constructor used by AdaptPermissionCollection. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if obj is a AdaptPermission, and has
the same name and actions as this AdaptPermission object;
false otherwise.The object to test for equality with this
obj)AdaptPermission object.Overrides java. Determines the equality of two |
| public String | Returns: Canonical string representation of theAdaptPermission
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 AdaptPermission which has already be
validated as a proper argument. The requested AdaptPermission 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_ADAPT | back to summary |
|---|---|
| private static final int ACTION_ADAPT | |
| ACTION_ALL | back to summary |
|---|---|
| private static final int ACTION_ALL | |
| 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 | |
| actions | back to summary |
|---|---|
| private volatile String actions The actions in canonical form. | |
| ADAPT | back to summary |
|---|---|
| public static final String ADAPT The action string | |
| bundle | back to summary |
|---|---|
| pack-priv final transient Bundle bundle The bundle used by this AdaptPermission. | |
| filter | back to summary |
|---|---|
| pack-priv transient Filter filter This holds a Filter matching object used to evaluate the filter in implies. | |
| 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 | |
| AdaptPermission | back to summary |
|---|---|
| public AdaptPermission(String filter, String actions) Creates a new granted Examples: (adaptClass=com.acme.*) (&(signer=\*,o=ACME,c=US)(adaptClass=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:
| |
| AdaptPermission | back to summary |
|---|---|
| public AdaptPermission(String adaptClass, Bundle adaptableBundle, String actions) Creates a new requested | |
| AdaptPermission | back to summary |
|---|---|
| pack-priv AdaptPermission(Filter filter, int mask) Package private constructor used by AdaptPermissionCollection.
| |
| 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 adapt
class name of this object. The list of
| |
| implies0 | back to summary |
|---|---|
| pack-priv boolean implies0(AdaptPermission 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. | |