equal
deleted
inserted
replaced
27 |
27 |
28 import java.util.ArrayList; |
28 import java.util.ArrayList; |
29 import java.util.List; |
29 import java.util.List; |
30 import sun.security.util.Debug; |
30 import sun.security.util.Debug; |
31 import sun.security.util.SecurityConstants; |
31 import sun.security.util.SecurityConstants; |
|
32 import sun.misc.JavaSecurityAccess; |
|
33 import sun.misc.SharedSecrets; |
|
34 |
32 |
35 |
33 /** |
36 /** |
34 * An AccessControlContext is used to make system resource access decisions |
37 * An AccessControlContext is used to make system resource access decisions |
35 * based on the context it encapsulates. |
38 * based on the context it encapsulates. |
36 * |
39 * |
192 AccessControlContext(ProtectionDomain context[], |
195 AccessControlContext(ProtectionDomain context[], |
193 boolean isPrivileged) |
196 boolean isPrivileged) |
194 { |
197 { |
195 this.context = context; |
198 this.context = context; |
196 this.isPrivileged = isPrivileged; |
199 this.isPrivileged = isPrivileged; |
|
200 } |
|
201 |
|
202 /** |
|
203 * Constructor for JavaSecurityAccess.doIntersectionPrivilege() |
|
204 */ |
|
205 AccessControlContext(ProtectionDomain[] context, |
|
206 AccessControlContext privilegedContext) |
|
207 { |
|
208 this.context = context; |
|
209 this.privilegedContext = privilegedContext; |
|
210 this.isPrivileged = true; |
|
211 } |
|
212 |
|
213 /** |
|
214 * Returns this context's context. |
|
215 */ |
|
216 ProtectionDomain[] getContext() { |
|
217 return context; |
197 } |
218 } |
198 |
219 |
199 /** |
220 /** |
200 * Returns true if this context is privileged. |
221 * Returns true if this context is privileged. |
201 */ |
222 */ |