public class ProtectionDomain
extends Object
java.lang.Object | |
↳ | java.security.ProtectionDomain |
旧版安全代码; 不使用。
Public constructors |
|
---|---|
ProtectionDomain(CodeSource codesource, PermissionCollection permissions) |
|
ProtectionDomain(CodeSource codesource, PermissionCollection permissions, ClassLoader classloader, Principal[] principals) |
Public methods |
|
---|---|
final ClassLoader |
getClassLoader() |
final CodeSource |
getCodeSource() |
final PermissionCollection |
getPermissions() |
final Principal[] |
getPrincipals() |
boolean |
implies(Permission permission) |
Inherited methods |
|
---|---|
From class java.lang.Object
|
ProtectionDomain (CodeSource codesource, PermissionCollection permissions)
Parameters | |
---|---|
codesource |
CodeSource
|
permissions |
PermissionCollection
|
ProtectionDomain (CodeSource codesource, PermissionCollection permissions, ClassLoader classloader, Principal[] principals)
Parameters | |
---|---|
codesource |
CodeSource
|
permissions |
PermissionCollection
|
classloader |
ClassLoader
|
principals |
Principal
|
PermissionCollection getPermissions ()
Returns | |
---|---|
PermissionCollection |
boolean implies (Permission permission)
Parameters | |
---|---|
permission |
Permission
|
Returns | |
---|---|
boolean |