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