Searched refs:PrivilegedAction (Results 1 – 15 of 15) sorted by relevance
23 import java.security.PrivilegedAction;38 lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeFastAndSlow()49 String lineSeparator = AccessController.doPrivileged(new PrivilegedAction<String>() { in timeNewAction()58 final PrivilegedAction<String> action = new ReusableAction("line.separator"); in timeReusedAction()64 private static final class ReusableAction implements PrivilegedAction<String> {
6 import java.security.PrivilegedAction;14 private class MyPrivilegedAction implements PrivilegedAction<String> {23 private class MyPrivilegedAction2 implements PrivilegedAction<String> {
44 public static <T> T doPrivileged(PrivilegedAction<T> action) { in doPrivileged()51 public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context) { in doPrivileged()78 public static <T> T doPrivilegedWithCombiner(PrivilegedAction<T> action) { in doPrivilegedWithCombiner()
23 public interface PrivilegedAction<T> { interface
24 import java.security.PrivilegedAction;50 AccessController.doPrivileged(new PrivilegedAction<Void>() { in testDoPrivilegedWithCombiner()56 AccessController.doPrivileged(new PrivilegedAction<Void>() { in testDoPrivilegedWithCombiner()
21 import java.security.PrivilegedAction;53 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
21 import java.security.PrivilegedAction;52 AccessController.doPrivileged(new PrivilegedAction<Void>() { in registerServices()
24 import java.security.PrivilegedAction;56 PrivilegedAction<Object> pa = new myPrivilegedAction(); in test_doAs_01()57 PrivilegedAction<Object> paNull = null; in test_doAs_01()124 PrivilegedAction<Object> pa = new myPrivilegedAction(); in test_doAsPrivileged_01()125 PrivilegedAction<Object> paNull = null; in test_doAsPrivileged_01()245 class myPrivilegedAction implements PrivilegedAction <Object> {
29 import java.security.PrivilegedAction;145 public static <T> T doAs(Subject subject, PrivilegedAction<T> action) { in doAs()165 public static <T> T doAsPrivileged(Subject subject, PrivilegedAction<T> action, in doAsPrivileged()176 private static <T> T doAs_PrivilegedAction(Subject subject, PrivilegedAction<T> action, in doAs_PrivilegedAction()190 PrivilegedAction dccAction = new PrivilegedAction() { in doAs_PrivilegedAction()264 … PrivilegedAction<AccessControlContext> dccAction = new PrivilegedAction<AccessControlContext>() { in doAs_PrivilegedExceptionAction()476 PrivilegedAction<DomainCombiner> action = new PrivilegedAction<DomainCombiner>() { in getSubject()
12 import java.security.PrivilegedAction;369 public static Callable<Object> callable(final PrivilegedAction<?> action) { in callable()564 AccessController.doPrivileged(new PrivilegedAction<Void>() {
3243 (new java.security.PrivilegedAction<ForkJoinPool>() {
131 AccessController.doPrivileged(new java.security.PrivilegedAction<Void>() { in MyProvider()
531 Callable c = Executors.callable(new PrivilegedAction() { in testCallable3()570 Callable c = Executors.callable((PrivilegedAction) null); in testCallableNPE3()
33 import java.security.PrivilegedAction;481 final Callable callable = Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction()
94 Future future = e.submit(Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction()