Uses of Class
java.security.AccessControlContext
-
Packages that use AccessControlContext 软件包 描述 java.security 提供安全框架的类和接口。javax.security.auth 此软件包提供了认证和授权的框架。 -
-
Uses of AccessControlContext in java.security
Methods in java.security that return AccessControlContext Modifier and Type 方法 描述 static AccessControlContext
AccessController. getContext()
此方法将获取当前调用上下文的“快照”,其中包括当前Thread的继承的AccessControlContext和任何有限权限范围,并将其放置在AccessControlContext对象中。Methods in java.security with parameters of type AccessControlContext Modifier and Type 方法 描述 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. 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(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)
执行指定的PrivilegedAction
,该权限启用并受指定的AccessControlContext
限制,特权范围受指定的Permission
参数限制。static <T> T
AccessController. doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms)
执行指定的PrivilegedExceptionAction
,启用并受限于特定的AccessControlContext
,并且特权范围受指定的Permission
参数限制。Constructors in java.security with parameters of type AccessControlContext Constructor 描述 AccessControlContext(AccessControlContext acc, DomainCombiner combiner)
创建一个新的AccessControlContext
与给定的AccessControlContext
和DomainCombiner
。 -
Uses of AccessControlContext in javax.security.auth
Methods in javax.security.auth with parameters of type AccessControlContext Modifier and Type 方法 描述 static <T> T
Subject. doAsPrivileged(Subject subject, PrivilegedAction<T> action, AccessControlContext acc)
作为一个特殊的Subject
执行特权工作。static <T> T
Subject. doAsPrivileged(Subject subject, PrivilegedExceptionAction<T> action, AccessControlContext acc)
作为特定的Subject
执行特权工作。static Subject
Subject. getSubject(AccessControlContext acc)
Get theSubject
associated with the providedAccessControlContext
.
-