Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public abstract class

Policy

extends Object
java.lang.Object
   ↳ java.security.Policy

Class Overview

Legacy security code; do not use.

Summary

Nested Classes
interface Policy.Parameters Legacy security code; do not use. 
Fields
public static final PermissionCollection UNSUPPORTED_EMPTY_COLLECTION
Public Constructors
Policy ()
Public Methods
static Policy getInstance ( String type, Policy.Parameters params)
static Policy getInstance ( String type, Policy.Parameters params, String provider)
static Policy getInstance ( String type, Policy.Parameters params, Provider provider)
Policy.Parameters getParameters ()
PermissionCollection getPermissions ( CodeSource cs)
PermissionCollection getPermissions ( ProtectionDomain domain)
static Policy getPolicy ()
Provider getProvider ()
String getType ()
boolean implies ( ProtectionDomain domain, Permission permission)
void refresh ()
static void setPolicy ( Policy policy)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final PermissionCollection UNSUPPORTED_EMPTY_COLLECTION

Added in API level 9

Public Constructors

public Policy ()

Added in API level 1

Public Methods

public static Policy getInstance ( String type, Policy.Parameters params)

Added in API level 9

public static Policy getInstance ( String type, Policy.Parameters params, Provider provider)

Added in API level 9

public Policy.Parameters getParameters ()

Added in API level 9

public PermissionCollection getPermissions ( CodeSource cs)

Added in API level 1

public PermissionCollection getPermissions ( ProtectionDomain domain)

Added in API level 1

public static Policy getPolicy ()

Added in API level 1

public Provider getProvider ()

Added in API level 9

public String getType ()

Added in API level 9

public boolean implies ( ProtectionDomain domain, Permission permission)

Added in API level 1

public void refresh ()

Added in API level 1

public static void setPolicy ( Policy policy)

Added in API level 1