Policy

public abstract class Policy extends Object

Legacy security code; do not use.

Nested Class Summary

interface Policy.Parameters  

Field Summary

public static final PermissionCollection UNSUPPORTED_EMPTY_COLLECTION

Public Constructor Summary

Policy()

Public Method Summary

static Policy
static Policy
getInstance(String type, Policy.Parameters params, Provider provider)
static Policy
getInstance(String type, Policy.Parameters params, String provider)
Policy.Parameters
PermissionCollection
PermissionCollection
static Policy
Provider
String
boolean
implies(ProtectionDomain domain, Permission permission)
void
static void

Inherited Method Summary

Fields

public static final PermissionCollection UNSUPPORTED_EMPTY_COLLECTION

Public Constructors

public Policy ()

Public Methods

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

Parameters
type
params

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

Parameters
type
params
provider

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

Parameters
type
params
provider

public Policy.Parameters getParameters ()

public PermissionCollection getPermissions (ProtectionDomain domain)

Parameters
domain

public PermissionCollection getPermissions (CodeSource codesource)

Parameters
codesource