Uses of Interface
java.security.PrivilegedAction
-
Packages that use PrivilegedAction 软件包 描述 java.security 提供安全框架的类和接口。java.util.concurrent 实用程序类通常用于并发编程。javax.security.auth 此软件包提供了认证和授权的框架。 -
-
Uses of PrivilegedAction in java.security
Methods in java.security with parameters of type PrivilegedAction Modifier and Type 方法 描述 static <T> T
AccessController. doPrivileged(PrivilegedAction<T> action)
执行指定的PrivilegedAction
启用特权。static <T> T
AccessController. doPrivileged(PrivilegedAction<T> action, AccessControlContext context)
执行指定的PrivilegedAction
,其特权被启用并受指定的AccessControlContext
限制。static <T> T
AccessController. doPrivileged(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)
执行指定的PrivilegedAction
,该权限启用并受指定的AccessControlContext
限制,特权范围受指定的Permission
参数限制。static <T> T
AccessController. doPrivilegedWithCombiner(PrivilegedAction<T> action)
执行指定的PrivilegedAction
启用特权。static <T> T
AccessController. doPrivilegedWithCombiner(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)
执行指定的PrivilegedAction
,该权限启用并受指定的AccessControlContext
限制,特权范围受限于指定的Permission
参数。 -
Uses of PrivilegedAction in java.util.concurrent
Methods in java.util.concurrent with parameters of type PrivilegedAction Modifier and Type 方法 描述 static Callable<Object>
Executors. callable(PrivilegedAction<?> action)
返回一个Callable
对象,该对象在被调用时运行给定的特权操作并返回其结果。 -
Uses of PrivilegedAction in javax.security.auth
Methods in javax.security.auth with parameters of type PrivilegedAction Modifier and Type 方法 描述 static <T> T
Subject. doAs(Subject subject, PrivilegedAction<T> action)
执行工作作为一个特定的Subject
。static <T> T
Subject. doAsPrivileged(Subject subject, PrivilegedAction<T> action, AccessControlContext acc)
作为一个特定的Subject
执行特权工作。
-