Taal

Policy.SetPolicy(Policy) Method

Definition

[Android.Runtime.Register("setPolicy", "(Ljava/security/Policy;)V", "")]
public static void SetPolicy(Java.Security.Policy? p);
[<Android.Runtime.Register("setPolicy", "(Ljava/security/Policy;)V", "")>]
static member SetPolicy : Java.Security.Policy -> unit

Parameters

p
Policy

the new system Policy object.

Attributes

Remarks

Sets the system-wide Policy object. This method first calls SecurityManager.checkPermission with a SecurityPermission("setPolicy") permission to ensure it's ok to set the Policy.

Java reference for java.security.Policy.setPolicy.

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