Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-470

Clean up privileged actions, remove redundant classes

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.0.0.Alpha1
    • Component/s: None
    • Labels:
      None

      Description

      There are quite a lot of redundant usages of privileged actions in the code base. We can flatten them down into a small number of action classes, some of which can in turn be singletons.

      Method
          doPrivileged(PrivilegedAction<T>)
      Found usages  (342 usages found)
          Production  (339 usages found)
              jboss-as-appclient  (12 usages found)
                  ApplicationClientStartService.java  (1 usage found)
                      (109: 46) AccessController.doPrivileged(new SetSelectorAction(contextSelector));
                  DefaultApplicationClientCallbackHandler.java  (1 usage found)
                      (54: 41) final SecurityContext context = doPrivileged(securityContext());
                  SecurityActions.java  (6 usages found)
                      (49: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (62: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (77: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (92: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
                      (104: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
                      (116: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-arquillian-common  (1 usage found)
                  SecurityActions.java  (1 usage found)
                      (39: 65) List<Field> declaredAccessableFields = AccessController.doPrivileged(new PrivilegedAction<List<Field>>() {
              jboss-as-arquillian-protocol-jmx  (2 usages found)
                  ArquillianService.java  (2 usages found)
                      (306: 33) return AccessController.doPrivileged(GetTcclAction.INSTANCE);
                      (311: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
              jboss-as-cli  (12 usages found)
                  SecurityActions.java  (3 usages found)
                      (76: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (85: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (94: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (66: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (75: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (67: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (76: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (5 usages found)
                      (93: 34) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (103: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (112: 34) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (122: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (131: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-clustering-api  (2 usages found)
                  SimpleMarshalledValue.java  (2 usages found)
                      (205: 37) return AccessController.doPrivileged(action);
                      (220: 30) AccessController.doPrivileged(action);
              jboss-as-clustering-common  (1 usage found)
                  ServiceContainerHelper.java  (1 usage found)
                      (77: 33) return AccessController.doPrivileged(action);
              jboss-as-clustering-jgroups  (4 usages found)
                  JGroupsExtension.java  (1 usage found)
                      (77: 26) AccessController.doPrivileged(action);
                  ProtocolStackAdd.java  (2 usages found)
                      (504: 51) this.protocolClass = AccessController.doPrivileged(action);
                      (520: 37) return AccessController.doPrivileged(action) != null;
                  TimerSchedulerAdapter.java  (1 usage found)
                      (179: 34) AccessController.doPrivileged(action);
              jboss-as-cmp  (28 usages found)
                  CascadeDeleteStrategy.java  (2 usages found)
                      (288: 53) return (Principal) AccessController.doPrivileged(getPrincipalAction);
                      (292: 41) return AccessController.doPrivileged(getCredentialAction);
                  GetTCLAction.java  (1 usage found)
                      (40: 61) ClassLoader loader = (ClassLoader) AccessController.doPrivileged(ACTION);
                  GetTCLAction.java  (1 usage found)
                      (40: 61) ClassLoader loader = (ClassLoader) AccessController.doPrivileged(ACTION);
                  JDBCCMRFieldBridge2.java  (3 usages found)
                      (1372: 53) return (Principal) AccessController.doPrivileged(getPrincipalAction);
                      (1376: 41) return AccessController.doPrivileged(getCredentialAction);
                      (1380: 59) return (SecurityContext) AccessController.doPrivileged(new PrivilegedAction() {
                  SecurityActions.java  (17 usages found)
                      (75: 49) return (RunAs) AccessController.doPrivileged(peekAction);
                      (79: 34) AccessController.doPrivileged(
                      (94: 49) return (RunAs) AccessController.doPrivileged(popAction);
                      (151: 55) return (Subject) AccessController.doPrivileged(exAction);
                      (265: 55) return (ClassLoader) AccessController.doPrivileged(getTCLPrivilegedAction);
                      (269: 55) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction() {
                      (277: 34) AccessController.doPrivileged(
                      (288: 34) AccessController.doPrivileged(
                      (311: 26) AccessController.doPrivileged(new PrivilegedExceptionAction() {
                      (323: 26) AccessController.doPrivileged(new PrivilegedExceptionAction() {
                      (335: 26) AccessController.doPrivileged(new PrivilegedAction() {
                      (345: 51) return (SecurityContext) AccessController.doPrivileged(new PrivilegedAction() {
                      (353: 45) return (Exception) AccessController.doPrivileged(new PrivilegedAction() {
                      (364: 26) AccessController.doPrivileged(new PrivilegedAction() {
                      (378: 26) AccessController.doPrivileged(new PrivilegedAction() {
                      (394: 26) AccessController.doPrivileged(new PrivilegedAction() {
                      (406: 26) AccessController.doPrivileged(new PrivilegedAction() {
                  TCLAction.java  (4 usages found)
                      (80: 51) return (ClassLoader) AccessController.doPrivileged(getTCLPrivilegedAction);
                      (84: 51) return (ClassLoader) AccessController.doPrivileged(new PrivilegedAction() {
                      (92: 30) AccessController.doPrivileged(
                      (103: 30) AccessController.doPrivileged(
              jboss-as-connector  (12 usages found)
                  AbstractDataSourceService.java  (4 usages found)
                      (192: 26) AccessController.doPrivileged(new SetContextLoaderAction(TransactionIntegration.class.getClassLoader()));
                      (196: 30) AccessController.doPrivileged(CLEAR_ACTION);
                      (376: 30) AccessController.doPrivileged(new SetContextLoaderAction(TransactionIntegration.class.getClassLoader()));
                      (380: 34) AccessController.doPrivileged(CLEAR_ACTION);
                  AbstractResourceAdapterDeploymentService.java  (2 usages found)
                      (399: 30) AccessController.doPrivileged(new SetContextLoaderAction(
                      (404: 34) AccessController.doPrivileged(CLEAR_ACTION);
                  SecurityActions.java  (2 usages found)
                      (45: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (58: 26) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (3 usages found)
                      (42: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (55: 26) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (73: 46) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  WorkManagerService.java  (1 usage found)
                      (91: 54) String callbackProperties = AccessController.doPrivileged(new PrivilegedAction<String>() {
              jboss-as-controller  (17 usages found)
                  ConfigurationFile.java  (1 usage found)
                      (506: 37) return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
                  OverallInterfaceCriteria.java  (1 usage found)
                      (160: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
                  SecurityActions.java  (3 usages found)
                      (46: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (56: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (65: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (2 usages found)
                      (74: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (85: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (2 usages found)
                      (75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (2 usages found)
                      (75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (2 usages found)
                      (75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (4 usages found)
                      (41: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (55: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (103: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (114: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
              jboss-as-controller-client  (1 usage found)
                  ClientConfigurationImpl.java  (1 usage found)
                      (165: 37) return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
              jboss-as-domain-http-interface  (5 usages found)
                  SecurityActions.java  (4 usages found)
                      (43: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
                      (51: 33) return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
                      (59: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (69: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (1 usage found)
                      (42: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
              jboss-as-domain-management  (1 usage found)
                  SecurityActions.java  (1 usage found)
                      (45: 33) return AccessController.doPrivileged(new PrivilegedAction<Subject>() {
              jboss-as-ee  (6 usages found)
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-ejb3  (44 usages found)
                  AsyncFutureInterceptorFactory.java  (2 usages found)
                      (90: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (100: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  AuthorizationInterceptor.java  (1 usage found)
                      (192: 37) return AccessController.doPrivileged(action);
                  DefaultEjbClientContextService.java  (2 usages found)
                      (68: 26) AccessController.doPrivileged(new SetSelectorAction(DefaultEJBClientContextSelector.INSTANCE));
                      (102: 30) AccessController.doPrivileged(new LockSelectorAction());
                  EJBComponent.java  (1 usage found)
                      (175: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  EjbCorbaServant.java  (2 usages found)
                      (447: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (458: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  FilePersistentObjectStore.java  (4 usages found)
                      (84: 37) return AccessController.doPrivileged(action);
                      (105: 40) fis = AccessController.doPrivileged(action);
                      (130: 40) fos = AccessController.doPrivileged(action);
                      (152: 37) return AccessController.doPrivileged(action);
                  LocalEjbReceiver.java  (2 usages found)
                      (564: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (575: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  MessageEndpointInvocationHandler.java  (3 usages found)
                      (90: 13) doPrivileged(contextClassLoader(previousClassLoader));
                      (100: 31) previousClassLoader = doPrivileged(contextClassLoader(getApplicationClassLoader()));
                      (114: 13) doPrivileged(contextClassLoader(previousClassLoader));
                  SecurityActions.java  (3 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (79: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                  SecurityActions.java  (3 usages found)
                      (46: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (63: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (81: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                  SecurityActions.java  (3 usages found)
                      (46: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (63: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (81: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                  SecurityActions.java  (4 usages found)
                      (46: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (65: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (124: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (136: 34) AccessController.doPrivileged(CLEAR_ACTION);
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityContextInterceptor.java  (2 usages found)
                      (74: 9) doPrivileged(pushAction);
                      (78: 13) doPrivileged(popAction);
                  SerializedStatefulSessionComponent.java  (1 usage found)
                      (82: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  SingletonComponent.java  (1 usage found)
                      (203: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  StatefulSerializedProxy.java  (1 usage found)
                      (64: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  StatefulSessionComponent.java  (1 usage found)
                      (343: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  StatelessSerializedProxy.java  (1 usage found)
                      (61: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  TimerHandleImpl.java  (1 usage found)
                      (143: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
              jboss-as-embedded  (11 usages found)
                  ClassPathEjbJarScanner.java  (2 usages found)
                      (234: 16) return doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (245: 16) return doPrivileged(new PrivilegedAction<String>() {
                  JBossStandaloneEJBContainer.java  (1 usage found)
                      (96: 50) String tmpDir = AccessController.doPrivileged(new PrivilegedAction<String>() {
                  JBossStandaloneEJBContainerProvider.java  (1 usage found)
                      (115: 16) return doPrivileged(new PrivilegedAction<String>() {
                  SecurityActions.java  (7 usages found)
                      (47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (60: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (75: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (90: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
                      (103: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
                      (117: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (132: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
              jboss-as-host-controller  (18 usages found)
                  RemoteDomainConnectionService.java  (1 usage found)
                      (571: 37) return AccessController.doPrivileged( new PrivilegedAction<Integer>() {
                  SecurityActions.java  (6 usages found)
                      (47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (61: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (74: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (89: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (104: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
                      (116: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
                  SecurityActions.java  (3 usages found)
                      (75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (101: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                  SecurityActions.java  (2 usages found)
                      (75: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (86: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (6 usages found)
                      (47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (61: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (74: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (89: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (104: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
                      (116: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
              jboss-as-jacorb  (7 usages found)
                  CorbaORBService.java  (1 usage found)
                      (267: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  SecurityActions.java  (1 usage found)
                      (46: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (5 usages found)
                      (46: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (63: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (79: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (97: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (115: 33) return AccessController.doPrivileged(new PrivilegedAction<Thread>() {
              jboss-as-jaxr  (2 usages found)
                  SecurityActions.java  (2 usages found)
                      (43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
              jboss-as-jaxrs  (2 usages found)
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-jmx  (2 usages found)
                  SecurityActions.java  (1 usage found)
                      (56: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                  SecurityActions.java  (1 usage found)
                      (67: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              jboss-as-jpa  (5 usages found)
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (60: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (60: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  TransactionScopedEntityManager.java  (1 usage found)
                      (114: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
              jboss-as-jsr77  (2 usages found)
                  SecurityActions.java  (1 usage found)
                      (37: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                  SecurityActions.java  (1 usage found)
                      (37: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              jboss-as-logging  (5 usages found)
                  SecurityActions.java  (5 usages found)
                      (41: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (55: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (119: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (130: 34) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (140: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              jboss-as-messaging  (8 usages found)
                  HornetQSecurityManagerAS7.java  (3 usages found)
                      (96: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
                      (114: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (125: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
                  SecurityActions.java  (3 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (73: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-naming  (10 usages found)
                  InitialContextFactoryBuilder.java  (1 usage found)
                      (69: 33) return AccessController.doPrivileged(
                  ObjectFactoryBuilder.java  (1 usage found)
                      (177: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (4 usages found)
                      (38: 37) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (50: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (68: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (86: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-network  (1 usage found)
                  NetworkUtils.java  (1 usage found)
                      (207: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
              jboss-as-osgi-launcher  (8 usages found)
                  SecurityActions.java  (8 usages found)
                      (46: 34) AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
                      (70: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
                      (83: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (98: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (114: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (136: 37) return AccessController.doPrivileged(GetSystemPropertiesAction.INSTANCE);
                      (145: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (160: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
              jboss-as-osgi-service  (5 usages found)
                  SecurityActions.java  (3 usages found)
                      (43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (71: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                  SecurityActions.java  (2 usages found)
                      (43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
              jboss-as-platform-mbean  (5 usages found)
                  SecurityActions.java  (5 usages found)
                      (47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (60: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (75: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (90: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
                      (102: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
              jboss-as-pojo  (2 usages found)
                  SecurityActions.java  (2 usages found)
                      (47: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (65: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-process-controller  (6 usages found)
                  SecurityActions.java  (6 usages found)
                      (47: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (61: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (74: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (89: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (104: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
                      (116: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
              jboss-as-protocol  (1 usage found)
                  SecurityActions.java  (1 usage found)
                      (44: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
              jboss-as-remoting  (2 usages found)
                  SecurityActions.java  (2 usages found)
                      (37: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (48: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              jboss-as-sar  (1 usage found)
                  SecurityActions.java  (1 usage found)
                      (67: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              jboss-as-security  (24 usages found)
                  RealmDirectLoginModule.java  (1 usage found)
                      (245: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  RuntimeVaultReader.java  (1 usage found)
                      (61: 38) vault = AccessController.doPrivileged(new PrivilegedExceptionAction<SecurityVault>() {
                  SecurityActions.java  (8 usages found)
                      (52: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<ModuleClassLoader>() {
                      (71: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (84: 37) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (96: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (109: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<Class<?>>() {
                      (219: 41) return AccessController.doPrivileged(IS_SET_ACTION);
                      (223: 41) return AccessController.doPrivileged(GET_CONNECTION_ACTION);
                      (227: 34) AccessController.doPrivileged(CLEAR_ACTION);
                  SecurityActions.java  (3 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (73: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (5 usages found)
                      (49: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<ModuleClassLoader>() {
                      (66: 37) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
                      (78: 37) return AccessController.doPrivileged(new PrivilegedAction<Principal>() {
                      (100: 37) return AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (121: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                  SecurityActions.java  (1 usage found)
                      (46: 41) return AccessController.doPrivileged(new PrivilegedExceptionAction<ModuleClassLoader>() {
                  SecurityActions.java  (1 usage found)
                      (70: 41) return AccessController.doPrivileged(GET_CONNECTION_ACTION);
                  SimpleSecurityManager.java  (4 usages found)
                      (109: 49) final SecurityContext securityContext = doPrivileged(securityContext());
                      (125: 49) final SecurityContext securityContext = doPrivileged(securityContext());
                      (174: 49) final SecurityContext securityContext = doPrivileged(securityContext());
                      (235: 49) final SecurityContext securityContext = doPrivileged(securityContext());
              jboss-as-server  (15 usages found)
                  NetworkInterfaceService.java  (1 usage found)
                      (176: 33) return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (7 usages found)
                      (48: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (62: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (75: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (90: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (105: 37) return AccessController.doPrivileged(new PrivilegedAction<Properties>() {
                      (117: 37) return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
                      (129: 29) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityActions.java  (1 usage found)
                      (36: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                  SecurityActions.java  (4 usages found)
                      (35: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (44: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (55: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (66: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
              jboss-as-testsuite-shared  (3 usages found)
                  ProcessWrapper.java  (1 usage found)
                      (118: 62) private final boolean writeOutput = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
                  SecurityActions.java  (2 usages found)
                      (67: 50) return (String) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (76: 34) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-version  (2 usages found)
                  ProductConfig.java  (2 usages found)
                      (103: 86) return System.getSecurityManager() == null ? action.run() : AccessController.doPrivileged(action);
                      (166: 30) AccessController.doPrivileged(action);
              jboss-as-web  (16 usages found)
                  ClusteredSession.java  (1 usage found)
                      (745: 62) StandardSessionFacade ssf = AccessController.doPrivileged(new PrivilegedAction<StandardSessionFacade>() {
                  DistributableSessionManager.java  (1 usage found)
                      (361: 44) policyClass = AccessController.doPrivileged(new PrivilegedAction<String>() {
                  JBossContextConfig.java  (1 usage found)
                      (138: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                  SecurityActions.java  (2 usages found)
                      (52: 33) return AccessController.doPrivileged(new PrivilegedExceptionAction<Class<?>>() {
                      (68: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
                  SecurityActions.java  (8 usages found)
                      (51: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
                      (70: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (86: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
                      (97: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (111: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (130: 33) return AccessController.doPrivileged(new PrivilegedAction<RunAs>() {
                      (148: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (167: 37) return AccessController.doPrivileged(new PrivilegedAction<Throwable>() {
                  SecurityActions.java  (2 usages found)
                      (43: 33) return AccessController.doPrivileged(new PrivilegedAction<String>() {
                      (56: 30) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  SecurityContextAssociationValve.java  (1 usage found)
                      (204: 33) return AccessController.doPrivileged(action);
              jboss-as-webservices-server-integration  (11 usages found)
                  SecurityActions.java  (2 usages found)
                      (48: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (66: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (48: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (66: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (44: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityDomainContextAdaptor.java  (3 usages found)
                      (72: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                      (93: 33) return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {
                      (112: 26) AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  WSDeploymentAspectParser.java  (2 usages found)
                      (365: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (382: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-webservices-tests-integration  (1 usage found)
                  RemoteDeployer.java  (1 usage found)
                      (378: 33) return AccessController.doPrivileged(action);
              jboss-as-weld  (15 usages found)
                  EjbRequestScopeActivationInterceptor.java  (1 usage found)
                      (118: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  ModuleGroupSingletonProvider.java  (1 usage found)
                      (125: 41) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                  ProxyServicesImpl.java  (2 usages found)
                      (53: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (94: 48) return (Class<?>) AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (3 usages found)
                      (44: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (62: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                      (76: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SecurityActions.java  (2 usages found)
                      (43: 37) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
                      (61: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
                  SessionObjectReferenceImpl.java  (1 usage found)
                      (117: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
                  StatefulSessionObjectReferenceImpl.java  (1 usage found)
                      (141: 33) return AccessController.doPrivileged(new PrivilegedAction<ServiceContainer>() {
              jboss-as-xts  (1 usage found)
                  SecurityActions.java  (1 usage found)
                      (45: 33) return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
          Test  (3 usages found)
              jboss-as-cli  (1 usage found)
                  ParameterValueResolutionTestCase.java  (1 usage found)
                      (143: 30) AccessController.doPrivileged(new PrivilegedAction<Object>() {
              jboss-as-naming  (1 usage found)
                  SecurityHelper.java  (1 usage found)
                      (215: 37) return AccessController.doPrivileged(new PrivilegedExceptionAction<T>() {
              jboss-as-security  (1 usage found)
                  MockRuntimeVaultReader.java  (1 usage found)
                      (29: 32) vault = AccessController.doPrivileged(new PrivilegedExceptionAction<SecurityVault>() {
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dmlloyd David Lloyd
                Reporter:
                dmlloyd David Lloyd
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: