public abstract class Policy
extends Object
java.lang.Object | |
java.security.Policy |
旧版安全代码; 不使用。
Nested classes |
|
---|---|
interface |
Policy.Parameters
|
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, Provider provider) |
static Policy |
getInstance(String type, Policy.Parameters params, String provider) |
Policy.Parameters |
getParameters() |
PermissionCollection |
getPermissions(ProtectionDomain domain) |
PermissionCollection |
getPermissions(CodeSource codesource) |
static Policy |
getPolicy() |
Provider |
getProvider() |
String |
getType() |
boolean |
implies(ProtectionDomain domain, Permission permission) |
void |
refresh() |
static void |
setPolicy(Policy p) |
继承方法(Inherited methods) |
|
---|---|
![]() java.lang.Object
|
Policy getInstance (String type, Policy.Parameters params)
参数(Parameters) | |
---|---|
type |
String
|
params |
Policy.Parameters
|
返回(Returns) | |
---|---|
Policy |
抛出异常(Throws) | |
---|---|
NoSuchAlgorithmException |
Policy getInstance (String type, Policy.Parameters params, Provider provider)
参数(Parameters) | |
---|---|
type |
String
|
params |
Policy.Parameters
|
provider |
Provider
|
返回(Returns) | |
---|---|
Policy |
抛出异常(Throws) | |
---|---|
NoSuchAlgorithmException |
Policy getInstance (String type, Policy.Parameters params, String provider)
参数(Parameters) | |
---|---|
type |
String
|
params |
Policy.Parameters
|
provider |
String
|
返回(Returns) | |
---|---|
Policy |
抛出异常(Throws) | |
---|---|
NoSuchProviderException |
|
NoSuchAlgorithmException |
PermissionCollection getPermissions (ProtectionDomain domain)
参数(Parameters) | |
---|---|
domain |
ProtectionDomain
|
返回(Returns) | |
---|---|
PermissionCollection |
PermissionCollection getPermissions (CodeSource codesource)
参数(Parameters) | |
---|---|
codesource |
CodeSource
|
返回(Returns) | |
---|---|
PermissionCollection |
boolean implies (ProtectionDomain domain, Permission permission)
参数(Parameters) | |
---|---|
domain |
ProtectionDomain
|
permission |
Permission
|
返回(Returns) | |
---|---|
boolean |