The privileged AccessControlContext is saved internally by the runtime and the run() method of the PrivilegedAction object is executed.
运行时在内部保存 privileged AccessControlContext 并执行 PrivilegedAction 对象的 run() 方法。
In the commit method of the login module, a privileged code clears up the current subject and replaces the principals, and the public and private credentials.
在登录模块的commit方法中,可以使用特权代码清除当前主题并替换相应的主体、公开的和私有的凭据。
They each delegate the real work to the run method of a PrivilegedExceptionAction class that is invoked within a privileged block.
它们各自将实际工作委托给privilegedexceptionaction类的run方法,这个类在特许块中被调用。
应用推荐