Home
last modified time | relevance | path

Searched refs:PrivilegedAction (Results 1 – 25 of 104) sorted by relevance

12345

/libcore/benchmarks/src/benchmarks/regression/
DDoPrivilegedBenchmark.java20 import java.security.PrivilegedAction;
35 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeFastAndSlow()
46 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeNewAction()
55 final PrivilegedAction<String> action = new ReusableAction("line.separator"); in timeReusedAction()
61 private static final class ReusableAction implements PrivilegedAction<String> {
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DPrivilegedActionTest.java6 import java.security.PrivilegedAction;
14 private class MyPrivilegedAction implements PrivilegedAction<String> {
23 private class MyPrivilegedAction2 implements PrivilegedAction<String> {
/libcore/ojluni/src/main/java/java/security/
DAccessController.java42 public static <T> T doPrivileged(PrivilegedAction<T> action) { in doPrivileged()
49 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { in doPrivilegedWithCombiner()
57 public static <T> T doPrivileged(PrivilegedAction<T> action, in doPrivileged()
DPrivilegedAction.java35 public interface PrivilegedAction<T> { interface
/libcore/luni/src/test/java/libcore/java/security/
DAccessControllerTest.java24 import java.security.PrivilegedAction;
51 AccessController.doPrivileged(new PrivilegedAction<Void>() { in testDoPrivilegedWithCombiner()
58 AccessController.doPrivileged(new PrivilegedAction<Void>() { in testDoPrivilegedWithCombiner()
/libcore/ojluni/src/main/java/java/util/
DTripwire.java30 import java.security.PrivilegedAction;
53 (PrivilegedAction<Boolean>) () -> Boolean.getBoolean(TRIPWIRE_PROPERTY));
/libcore/ojluni/src/main/java/java/util/stream/
DTripwire.java28 import java.security.PrivilegedAction;
53 (PrivilegedAction<Boolean>) () -> Boolean.getBoolean(TRIPWIRE_PROPERTY));
/libcore/support/src/test/java/tests/support/
DSupport_ProviderTrust.java21 import java.security.PrivilegedAction;
53 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
DSupport_TestProvider.java21 import java.security.PrivilegedAction;
52 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/
DSubjectTest.java27 import java.security.PrivilegedAction;
85 PrivilegedAction<Object> pa = new myPrivilegedAction(); in test_doAs_01()
86 PrivilegedAction<Object> paNull = null; in test_doAs_01()
153 PrivilegedAction<Object> pa = new myPrivilegedAction(); in test_doAsPrivileged_01()
154 PrivilegedAction<Object> paNull = null; in test_doAsPrivileged_01()
304 class myPrivilegedAction implements PrivilegedAction <Object> {
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java35 import java.security.PrivilegedAction;
72 new PrivilegedAction<Void>() { in AccessController.doPrivileged()
157 new PrivilegedAction<Socket>() { in doConnect()
204 new PrivilegedAction<InetAddress>() { in getLocalAddress()
DNetProperties.java29 import java.security.PrivilegedAction;
45 new PrivilegedAction<Void>() { in AccessController.doPrivileged()
/libcore/ojluni/src/main/java/sun/security/util/
DResourcesMgr.java44 new java.security.PrivilegedAction<java.util.ResourceBundle>() { in getString()
61 new java.security.PrivilegedAction<java.util.ResourceBundle>() { in getString()
DAbstractAlgorithmConstraints.java30 import java.security.PrivilegedAction;
49 new PrivilegedAction<String>() { in getAlgorithms()
DAnchorCertificates.java32 import java.security.PrivilegedAction;
50 AccessController.doPrivileged(new PrivilegedAction<Void>() { in AccessController.doPrivileged()
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClientProvider.java28 import java.security.PrivilegedAction;
142 new PrivilegedAction<Object>() { in provider()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAsynchronousChannelGroupImpl.java37 import java.security.PrivilegedAction;
118 AccessController.doPrivileged(new PrivilegedAction<Void>() {
249 AccessController.doPrivileged(new PrivilegedAction<Void>() {
326 AccessController.doPrivileged(new PrivilegedAction<Void>() {
/libcore/ojluni/src/main/java/sun/util/logging/
DLoggingSupport.java31 import java.security.PrivilegedAction;
49 AccessController.doPrivileged(new PrivilegedAction<LoggingProxy>() {
161 new PrivilegedAction<String>() { in getSimpleFormat()
/libcore/ojluni/src/main/java/sun/misc/
DCleaner.java30 import java.security.PrivilegedAction;
145 AccessController.doPrivileged(new PrivilegedAction<Void>() { in clean()
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java38 import java.security.PrivilegedAction;
297 (new java.security.PrivilegedAction<Subject>() { in getSubject()
344 final java.security.PrivilegedAction<T> action) {
462 final java.security.PrivilegedAction<T> action,
558 (new java.security.PrivilegedAction<AccessControlContext>() {
1149 (new java.security.PrivilegedAction<E>() {
1190 (new java.security.PrivilegedAction<E>() {
1218 (new java.security.PrivilegedAction<E>() {
1256 (new java.security.PrivilegedAction<E>() {
1294 (new java.security.PrivilegedAction<E>() {
[all …]
/libcore/ojluni/src/main/java/sun/security/jca/
DProviderConfig.java103 new PrivilegedAction<Boolean>() { in checkSunPKCS11Solaris()
206 return AccessController.doPrivileged(new PrivilegedAction<Provider>() { in doLoadProvider()
285 return AccessController.doPrivileged(new PrivilegedAction<String>() {
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DSelectorProvider.java32 import java.security.PrivilegedAction;
169 new PrivilegedAction<SelectorProvider>() { in provider()
DAsynchronousChannelProvider.java35 import java.security.PrivilegedAction;
79 .doPrivileged(new PrivilegedAction<AsynchronousChannelProvider>() { in load()
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathValidator.java32 import java.security.PrivilegedAction;
325 AccessController.doPrivileged(new PrivilegedAction<String>() { in getDefaultType()
DCertPathBuilder.java32 import java.security.PrivilegedAction;
315 AccessController.doPrivileged(new PrivilegedAction<String>() { in getDefaultType()

12345