However, in some situations, it might make sense to define your own code access permission class.
但在某些情况下,定义自己的代码访问权限类可能会有用。
The runtime queries the Permission class about its implication reasoning logic by calling a method, aptly named implies.
运行时通过调用一个恰当地取名为implies的方法来查询permission类的隐含推断逻辑。
These permission classes are described briefly in the Permissions topic and in detail in the reference documentation for each permission class.
在权限主题中对这些权限类作了概括描述,在每个权限类的参考文档中提供对该权限类的详细描述。
However, the runtime cannot be expected to make any further judgments and must delegate this implication reasoning logic to the Permission class in question.
不过,不能指望运行时进行进一步的判断,并且必须将这种隐含推断逻辑指派给所涉及的permission类。
In general, you should design your permission class so that the state of the permission is as complex as necessary, without greatly impacting performance.
一般情况下,在设计权限类时,应当按需要确定权限状态的复杂程度,从而不会对性能造成很大影响。
Security permissions can be in the form of a permission class (imperative security) or an attribute that represents a permission class (declarative security).
安全性权限可在表单中的使用权限类别(命令式安全性)或属性,表示使用权限类别(宣告式安全性)。
When a built-in code access permission class protects a resource but does not sufficiently control access to that resource, you might need a custom code access permission.
如果内置代码访问权限类保护一种资源但不能充分控制对该资源的访问,则您可能需要使用自定义代码访问权限。
The children and I routinely did all the "business" stuff like permission slips for class trips, money for school lunches, etc. the night before.
我和孩子们通常会把正经事都在头天晚上准备好,像同意参加班级旅行的签名单、学校的午餐费等。
The most important thing to note when extending JAAS for class instance-level authorization is that the permission implementation class must have a three-parameter constructor.
在为类实例级授权扩展JAAS时要注意的最重要的一点是:许可权实现类必须有一个带三个参数的构造函数。
In Listing 3, I've specified that the Premain-Class com.geekcap.openapm.jvm.agent.Agent will be granted permission to redefine and retransform classes.
在清单3中,我已指定Premain - Class - com .geekcap . openapm . jvm . agent . agent被授权许可来对类进行重定义和再转换。
The ProtectionDomain calls the getPolicyNoCheck() method on the installed Policy class whenever the implies() method is called on it (essentially, when a permission is to be checked).
对ProtectionDomain调用implies()方法时(实质上是对权限进行检查时),它调用安装的Policy类的 getPolicyNoCheck() 方法。
The check of the calling stack stops when it encounters a PrivilegedAction instance, effectively granting all subsequent class calls the required permission to perform the specified operation.
调用栈的检查在遇到PrivilegedAction实例时停止,有效地将执行指定操作所必需的许可权授予所有的后继类调用。
This class represents a collection of different types of permission objects organized by PermissionCollection.
这个类代表由PermissionCollection组织的不同类型许可权对象的一个集合。
We need to add one thing to this file to extend the policy definition for class instance-level authorization: an optional relationship parameter associated with a permission statement.
我们需要向这个文件添加一个东西为类实例级授权扩展策略定义:一个与许可权语句相关的可选关系参数。
Line 1: the browser: pages directive allows us to register several pages for an interface using the same view class and permission at once.
第1行:浏览器:页面指令允许我们可以马上为使用相同视图类和权限的接口注册相应的页面。
Again, any user can execute the code written to create an instance of a Bid class, but only a user who owns that instance will be given permission to modify it.
再一次,任何用户都可以执行被编写用来创建bid类实例的代码,但只有拥有该实例的用户会被授予修改该实例的许可权。
Thanks for meeting with me, Dr. Pearl. I need permission to drop your class, Literature and Writing.
谢谢你和我见面,珀尔医生。我需要你放弃你的课,文学和写作。
Ensure that an object can be created only by callers who have a specific permission by placing the demand on the class level of that object.
通过将要求放到某对象的类级别上,确保只能由拥有特定权限的调用方创建该对象。
A secure library is a class library that USES security demands to ensure that the library's callers have permission to access the resources that the library exposes.
安全库是这样一种类库,它使用安全要求来确保库的调用方拥有访问库公开的资源的权限。
In this example, the declarative call is placed directly before the class definition, specifying that this permission be applied to the class level.
在这个范例中,宣告式呼叫被直接放入类别定义之前,表示这个使用权限将被套用至该类别等级。
Personally, I regard this as a golden opportunity to put what I have learned in your class into practice, but I need your permission of absence.
亲自地,我视为这当放我已经进入练习之内在你的班级中学习的一个难得的机会,但是我需要你的缺席许可。
You can place inheritance demands at the class level to ensure that only code with the specified permission can inherit from your class.
可以将继承要求放在类级别,以确保只有拥有指定权限的代码才能从您的类继承。
Class-level attributes require the specified permission in order to derive from the class.
类级特性应具从类进行派生所需的权限。
However, if you place a declarative security check at the member level, it applies to only that member and overrides the permission specified at the class level, if one exists.
然而,如果您将一个宣告式安全性检查置于成员等级上,它只会套用至该成员,并覆写在类别等级上所指定的使用权限(如存在时)。
Method-level attributes and class-level attributes are unioned together into a single permission set for both levels.
方法级特性和类级特性形成并集,作为针对这两种级别的一个单独的权限集。
Class-a buildings engineering design: the following items do not contain lead permission...
问题补充:另加:一般经营项目:工程勘察设计;城市规划设计。
Class-a buildings engineering design: the following items do not contain lead permission...
问题补充:另加:一般经营项目:工程勘察设计;城市规划设计。
应用推荐