软件包 | 描述 |
---|---|
java.net |
为实现网络应用程序提供类。
|
java.security |
为安全框架提供类和接口。
|
javax.security.auth |
本软件包提供了一个用于身份验证和授权的框架。
|
Modifier and Type | Method and Description |
---|---|
protected PermissionCollection |
URLClassLoader.getPermissions(CodeSource codesource)
返回给定代码资源对象的权限。
|
Modifier and Type | Method and Description |
---|---|
CodeSource |
ProtectionDomain.getCodeSource()
返回该域CodeSource。
|
Modifier and Type | Method and Description |
---|---|
protected 类<?> |
SecureClassLoader.defineClass(String name, byte[] b, int off, int len, CodeSource cs)
将字节数组转换为类的类的一个实例,一个可选的CodeSource。
|
protected 类<?> |
SecureClassLoader.defineClass(String name, ByteBuffer b, CodeSource cs)
将
ByteBuffer 到
类 类实例,一个可选的CodeSource。
|
protected PermissionCollection |
PolicySpi.engineGetPermissions(CodeSource codesource)
返回一个包含授予指定权限集PermissionCollection CodeSource对象。
|
protected PermissionCollection |
SecureClassLoader.getPermissions(CodeSource codesource)
返回给定代码资源对象的权限。
|
PermissionCollection |
Policy.getPermissions(CodeSource codesource)
返回一个包含授予指定权限集PermissionCollection CodeSource对象。
|
boolean |
CodeSource.implies(CodeSource codesource)
返回true如果CodeSource对象”意味着“指定CodeSource。
|
Constructor and Description |
---|
ProtectionDomain(CodeSource codesource, PermissionCollection permissions)
创建具有给定代码资源和权限的一种新的保护范围。
|
ProtectionDomain(CodeSource codesource, PermissionCollection permissions, ClassLoader classloader, Principal[] principals)
创建一个新的保护范围由给定代码资源,合格的权限,ClassLoader和阵列的校长。
|
Modifier and Type | Method and Description |
---|---|
abstract PermissionCollection |
Policy.getPermissions(Subject subject, CodeSource cs)
过时的。
检索具有指定
CodeSource 授予相关权限的原则。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.