Policy.GetPolicy 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("getPolicy", "()Ljava/security/Policy;", "")]
public static Java.Security.Policy? GetPolicy();
[<Android.Runtime.Register("getPolicy", "()Ljava/security/Policy;", "")>]
static member GetPolicy : unit -> Java.Security.Policy
Returns
the installed Policy.
- Attributes
Remarks
Returns the installed Policy object. This value should not be cached, as it may be changed by a call to setPolicy. This method first calls SecurityManager.checkPermission with a SecurityPermission("getPolicy") permission to ensure it's ok to get the Policy object.
Java reference for java.security.Policy.getPolicy.
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.