equal
deleted
inserted
replaced
31 import java.util.List; |
31 import java.util.List; |
32 import java.util.Map; |
32 import java.util.Map; |
33 import java.util.WeakHashMap; |
33 import java.util.WeakHashMap; |
34 import sun.misc.JavaSecurityProtectionDomainAccess; |
34 import sun.misc.JavaSecurityProtectionDomainAccess; |
35 import static sun.misc.JavaSecurityProtectionDomainAccess.ProtectionDomainCache; |
35 import static sun.misc.JavaSecurityProtectionDomainAccess.ProtectionDomainCache; |
36 import sun.misc.SharedSecrets; |
|
37 import sun.security.util.Debug; |
36 import sun.security.util.Debug; |
38 import sun.security.util.SecurityConstants; |
37 import sun.security.util.SecurityConstants; |
39 import sun.misc.JavaSecurityAccess; |
38 import sun.misc.JavaSecurityAccess; |
40 import sun.misc.SharedSecrets; |
39 import sun.misc.SharedSecrets; |
41 |
40 |
401 // an empty vector. |
400 // an empty vector. |
402 synchronized (permissions) { |
401 synchronized (permissions) { |
403 e = permissions.elements(); // domain vs policy |
402 e = permissions.elements(); // domain vs policy |
404 while (e.hasMoreElements()) { |
403 while (e.hasMoreElements()) { |
405 Permission pdp = e.nextElement(); |
404 Permission pdp = e.nextElement(); |
406 Class pdpClass = pdp.getClass(); |
405 Class<?> pdpClass = pdp.getClass(); |
407 String pdpActions = pdp.getActions(); |
406 String pdpActions = pdp.getActions(); |
408 String pdpName = pdp.getName(); |
407 String pdpName = pdp.getName(); |
409 for (int i = 0; i < plVector.size(); i++) { |
408 for (int i = 0; i < plVector.size(); i++) { |
410 Permission pp = plVector.get(i); |
409 Permission pp = plVector.get(i); |
411 if (pdpClass.isInstance(pp)) { |
410 if (pdpClass.isInstance(pp)) { |