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

Parameters
type String
params Policy.Parameters
Returns
Policy
Throws
NoSuchAlgorithmException

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

Added in API level 9

Parameters
type String
params Policy.Parameters
provider String
Returns
Policy
Throws
NoSuchProviderException
NoSuchAlgorithmException

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

Added in API level 9

Parameters
type String
params Policy.Parameters
provider Provider
Returns
Policy
Throws
NoSuchAlgorithmException

public Policy.Parameters getParameters ()

Added in API level 9

public PermissionCollection getPermissions (CodeSource cs)

Added in API level 1

Parameters
cs CodeSource
Returns
PermissionCollection

public PermissionCollection getPermissions (ProtectionDomain domain)

Added in API level 1

Parameters
domain ProtectionDomain
Returns
PermissionCollection

public static Policy getPolicy ()

Added in API level 1

Returns
Policy

public Provider getProvider ()

Added in API level 9

Returns
Provider

public String getType ()

Added in API level 9

Returns
String

public boolean implies (ProtectionDomain domain, Permission permission)

Added in API level 1

Parameters
domain ProtectionDomain
permission Permission
Returns
boolean

public void refresh ()

Added in API level 1

public static void setPolicy (Policy policy)

Added in API level 1

Parameters
policy Policy