SocketPermission.Implies(Permission) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[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
the permission to check against.
Returns
true if the specified permission is implied by this object, false if not.
- Attributes
Remarks
Checks if this socket permission object "implies" the specified permission. More specifically, this method first ensures that all of the following are true (and returns false if any of them are not): p is an instanceof SocketPermission,; p's actions are a proper subset of this object's actions, and; p's port range is included in this port range. Note: port range is ignored when p only contains the action, 'resolve' Then implies checks each of the following, in order, and for each returns true if the stated condition is true:; If this object was initialized with a single IP address and one of p's IP addresses is equal to this object's IP address; If this object is a wildcard domain (such as *.example.com), and p's canonical name (the name without any preceding *) ends with this object's canonical host name. For example, *.example.com implies *.foo.example.com; If this object was not initialized with a single IP address, and one of this object's IP addresses equals one of p's IP addresses; If this canonical name equals p's canonical name. If none of the above are true, implies returns false.
Java reference for java.net.SocketPermission.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.