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

Since: API Level 9

Public Constructors

public Policy ()

Since: API Level 1

Public Methods

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

Since: API Level 9

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

Since: API Level 9

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

Since: API Level 9

public Policy.Parameters getParameters ()

Since: API Level 9

public PermissionCollection getPermissions (CodeSource cs)

Since: API Level 1

public PermissionCollection getPermissions (ProtectionDomain domain)

Since: API Level 1

public static Policy getPolicy ()

Since: API Level 1

public Provider getProvider ()

Since: API Level 9

public String getType ()

Since: API Level 9

public boolean implies (ProtectionDomain domain, Permission permission)

Since: API Level 1

public void refresh ()

Since: API Level 1

public static void setPolicy (Policy policy)

Since: API Level 1