Language

FilePermission.Implies(Permission) Method

Definition

Returns true without checking the permission argument on Android.

[Android.Runtime.Register("implies", "(Ljava/security/Permission;)Z", "")]
public override bool Implies(Java.Security.Permission? p);
[<Android.Runtime.Register("implies", "(Ljava/security/Permission;)Z", "")>]
override this.Implies : Java.Security.Permission -> bool

Parameters

p
Permission

An unused permission argument on Android.

Returns

Always true on Android.

Attributes

Remarks

On Android, this legacy implementation ignores p and returns true, even when the argument is null. It does not evaluate file paths or requested actions.

Checks if this FilePermission object "implies" the specified permission. More specifically, this method returns true if: p is an instanceof FilePermission, p's actions are a proper subset of this object's actions, and p's pathname is implied by this object's pathname. For example, "/tmp/*" implies "/tmp/foo", since "/tmp/*" encompasses all files in the "/tmp" directory, including the one named "foo". Precisely, a simple pathname implies another simple pathname if and only if they are equal. A simple pathname never implies a wildcard pathname. A wildcard pathname implies another wildcard pathname if and only if all simple pathnames implied by the latter are implied by the former. A wildcard pathname implies a simple pathname if and only if: if the wildcard flag is "*", the simple pathname's path must be right inside the wildcard pathname's path; if the wildcard flag is "-", the simple pathname's path must be recursively inside the wildcard pathname's path. "<<ALL FILES>>" implies every other pathname. No pathname, except for "<<ALL FILES>>" itself, implies "<<ALL FILES>>".

Java reference for java.io.FilePermission.implies.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to