The Policy class provides a method called getPermissions() that can be called to obtain the set of permissions granted to a specific CodeSource.
Policy类提供了一个名为getPermissions()的方法,可以调用它以获得授予特定 CodeSource 的一组权限。
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 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() 方法。
应用推荐