Searched refs:Policy (Results 1 – 10 of 10) sorted by relevance
37 public abstract class Policy { class42 public static Policy getPolicy() in getPolicy()47 public static void setPolicy(Policy p) in setPolicy()51 public static Policy getInstance(String type, Policy.Parameters params) in getInstance()56 public static Policy getInstance(String type, in getInstance()57 Policy.Parameters params, in getInstance()64 public static Policy getInstance(String type, in getInstance()65 Policy.Parameters params, in getInstance()79 public Policy.Parameters getParameters() { in getParameters()
92 return Policy.UNSUPPORTED_EMPTY_COLLECTION; in engineGetPermissions()116 return Policy.UNSUPPORTED_EMPTY_COLLECTION; in engineGetPermissions()
52 public interface Policy { interface in BlockGuard122 public static final Policy LAX_POLICY = new Policy() {132 private static ThreadLocal<Policy> threadPolicy = new ThreadLocal<Policy>() {133 @Override protected Policy initialValue() {144 public static Policy getThreadPolicy() { in getThreadPolicy()154 public static void setThreadPolicy(Policy policy) { in setThreadPolicy()
59 @Mock private BlockGuard.Policy mockThreadPolicy;61 private BlockGuard.Policy savedThreadPolicy;
130 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in test_classLoader_exceptionDuringLoading()131 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in test_classLoader_exceptionDuringLoading()
37 private BlockGuard.Policy oldPolicy;269 public static class RecordingPolicy implements BlockGuard.Policy {
27 import java.security.Policy;1148 public static class AdjustablePolicy extends java.security.Policy {1177 public static Policy permissivePolicy() {
38 import java.security.Policy;
893 final BlockGuard.Policy oldPolicy = BlockGuard.getThreadPolicy(); in testHashCodeAndEqualsDoesNotPerformNetworkIo()894 BlockGuard.setThreadPolicy(new BlockGuard.Policy() { in testHashCodeAndEqualsDoesNotPerformNetworkIo()
641 "ojluni/src/main/java/java/security/Policy.java",