Taal

AccessController.CheckPermission(Permission) Method

Definition

[Android.Runtime.Register("checkPermission", "(Ljava/security/Permission;)V", "")]
public static void CheckPermission(Java.Security.Permission? perm);
[<Android.Runtime.Register("checkPermission", "(Ljava/security/Permission;)V", "")>]
static member 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 current AccessControlContext and security policy. This method quietly returns if the access request is permitted, or throws an AccessControlException otherwise. The getPermission method of the AccessControlException returns the Permission object instance (perm}.

Java reference for java.security.AccessController.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.

Applies to