Home
last modified time | relevance | path

Searched refs:AccessController (Results 1 – 25 of 151) sorted by relevance

1234567

/libcore/luni/src/test/java/libcore/java/security/
DAccessControllerTest.java22 import java.security.AccessController;
60 assertActionRun(action -> AccessController.doPrivileged( in testDoPrivilegedWithCombiner()
63 assertActionRun(action -> AccessController.doPrivileged( in testDoPrivilegedWithCombiner()
68 AccessController.doPrivileged((PrivilegedExceptionAction<Void>) action::get); in testDoPrivilegedWithCombiner()
76 AccessController.doPrivileged( in testDoPrivilegedWithCombiner()
83 assertActionRun(action -> AccessController.doPrivilegedWithCombiner( in testDoPrivilegedWithCombiner()
88 AccessController.doPrivilegedWithCombiner( in testDoPrivilegedWithCombiner()
102 assertEquals(null, AccessController.getContext().getDomainCombiner()); in assertActionRun()
103 AccessController.getContext().checkPermission(permission); in assertActionRun()
108 assertEquals(null, AccessController.getContext().getDomainCombiner()); in assertActionRun()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java19 import java.security.AccessController;
35 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeFastAndSlow()
46 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeNewAction()
57 String lineSeparator = AccessController.doPrivileged(action); in timeReusedAction()
/libcore/ojluni/src/main/java/sun/security/action/
DGetPropertyAction.java28 import java.security.AccessController;
108 return AccessController.doPrivileged( in privilegedGetProperty()
132 return AccessController.doPrivileged( in privilegedGetProperty()
153 return AccessController.doPrivileged( in privilegedGetProperties()
DGetIntegerAction.java28 import java.security.AccessController;
133 return AccessController.doPrivileged( in privilegedGetProperty()
158 value = AccessController.doPrivileged( in privilegedGetProperty()
DGetBooleanAction.java28 import java.security.AccessController;
92 return AccessController.doPrivileged( in privilegedGetProperty()
/libcore/benchmarks/src/benchmarks/
DGetSystemPropertyBenchmark.java19 import java.security.AccessController;
48 AccessController.doPrivileged( in timeAccessController_getPropertyAction()
55 AccessController.doPrivileged( in timeAccessController_getPropertyAction_default()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DPrivilegedActionTest.java5 import java.security.AccessController;
35 String result = AccessController.doPrivileged(action); in testRun()
43 result = AccessController.doPrivileged(action2); in testRun()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAsynchronousChannelGroupImpl.java38 import java.security.AccessController;
51 private static final int internalThreadCount = AccessController.doPrivileged(
118 AccessController.doPrivileged(new PrivilegedAction<Void>() {
249 AccessController.doPrivileged(new PrivilegedAction<Void>() {
321 final AccessControlContext acc = AccessController.getContext();
326 AccessController.doPrivileged(new PrivilegedAction<Void>() {
DThreadPool.java29 import java.security.AccessController;
157 String propValue = AccessController.doPrivileged(new in getDefaultThreadPoolInitialSize()
171 String propValue = AccessController.doPrivileged(new in getDefaultThreadPoolThreadFactory()
/libcore/ojluni/src/main/java/java/net/
DURLClassLoader.java34 import java.security.AccessController;
106 this.acc = AccessController.getContext(); in URLClassLoader()
150 this.acc = AccessController.getContext(); in URLClassLoader()
194 acc = AccessController.getContext(); in URLClassLoader()
361 result = AccessController.doPrivileged( in findClass()
568 URL url = AccessController.doPrivileged( in findResource()
600 URL u = AccessController.doPrivileged( in findResources()
709 AccessController.doPrivileged(new PrivilegedAction<Void>() { in getPermissions()
737 final AccessControlContext acc = AccessController.getContext(); in newInstance()
739 URLClassLoader ucl = AccessController.doPrivileged( in newInstance()
[all …]
DDefaultDatagramSocketImplFactory.java27 import java.security.AccessController;
43 prefix = AccessController.doPrivileged(
/libcore/ojluni/src/main/java/jdk/internal/misc/
DInnocuousThread.java29 import java.security.AccessController;
65 return AccessController.doPrivileged( in newThread()
89 return AccessController.doPrivileged(
170 INNOCUOUSTHREADGROUP = AccessController.doPrivileged(
/libcore/ojluni/src/main/java/java/util/
DTripwire.java29 import java.security.AccessController;
53 static final boolean ENABLED = AccessController.doPrivileged(
/libcore/ojluni/src/main/java/java/util/stream/
DTripwire.java27 import java.security.AccessController;
53 static final boolean ENABLED = AccessController.doPrivileged(
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java32 import java.security.AccessController;
296 return AccessController.doPrivileged in getSubject()
356 final AccessControlContext currentAcc = AccessController.getContext();
359 return java.security.AccessController.doPrivileged
418 final AccessControlContext currentAcc = AccessController.getContext();
421 return java.security.AccessController.doPrivileged
482 return java.security.AccessController.doPrivileged
548 return java.security.AccessController.doPrivileged
557 return java.security.AccessController.doPrivileged
1148 next = java.security.AccessController.doPrivileged
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_ProviderTrust.java20 import java.security.AccessController;
53 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
DSupport_TestProvider.java20 import java.security.AccessController;
52 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java34 import java.security.AccessController;
71 AccessController.doPrivileged( in AccessController.doPrivileged()
156 s = AccessController.doPrivileged( in doConnect()
203 return AccessController.doPrivileged( in getLocalAddress()
/libcore/ojluni/src/main/java/sun/nio/fs/
DDefaultFileSystemProvider.java29 import java.security.AccessController;
58 String osname = AccessController in create()
/libcore/ojluni/src/main/java/sun/security/util/
DSecurityProperties.java29 import java.security.AccessController;
50 …return AccessController.doPrivileged((PrivilegedAction<String>) () -> getOverridableProperty(propN… in privilegedGetOverridable()
DResourcesMgr.java43 bundle = java.security.AccessController.doPrivileged( in getString()
60 altBundle = java.security.AccessController.doPrivileged( in getString()
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClientProvider.java27 import java.security.AccessController;
141 return (FtpClientProvider) AccessController.doPrivileged( in provider()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java42 import java.security.AccessController;
506 this.acc = AccessController.getContext();
512 return AccessController.doPrivileged(
556 this.acc = AccessController.getContext();
563 return AccessController.doPrivileged(
645 this.acc = AccessController.getContext();
653 AccessController.doPrivileged(new PrivilegedAction<>() {
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java30 import java.security.AccessController;
97 AccessController.doPrivileged(new PrivilegedAction<Void>() { in setupUserRoot()
158 AccessController.doPrivileged(new PrivilegedAction<Void>() { in setupSystemRoot()
507 AccessController.doPrivileged(new PrivilegedAction<Void>() { in FileSystemPreferences()
613 AccessController.doPrivileged( in writeBackCache()
645 return AccessController.doPrivileged( in childrenNamesSpi()
684 AccessController.doPrivileged(
731 AccessController.doPrivileged(
747 AccessController.doPrivileged(new PrivilegedAction<Void>() {
/libcore/ojluni/src/main/java/sun/util/logging/
DLoggingSupport.java30 import java.security.AccessController;
49 AccessController.doPrivileged(new PrivilegedAction<LoggingProxy>() {
160 AccessController.doPrivileged( in getSimpleFormat()

1234567