AccessControlContext.CheckPermission(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("checkPermission", "(Ljava/security/Permission;)V", "")]
public void CheckPermission(Java.Security.Permission? perm);
[<Android.Runtime.Register("checkPermission", "(Ljava/security/Permission;)V", "")>]
member this.CheckPermission : Java.Security.Permission -> unit
Parameters
- perm
- Permission
the requested permission.
- Attributes
Exceptions
Remarks
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect, and the context in this object. The request is allowed only if every ProtectionDomain in the context implies the permission. Otherwise the request is denied. This method quietly returns if the access request is permitted, or throws a suitable AccessControlException otherwise.
Java reference for java.security.AccessControlContext.checkPermission.
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.