test_class.file: modules/core/src/test/java/org/apache/ignite/internal/processors/security/IgniteSecurityProcessorTest.java
test_class.identifier: IgniteSecurityProcessorTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void testThrowIllegalStateExceptionIfNodeNotFoundInDiscoCache() {
          GridKernalContext ctx = mock(GridKernalContext.class);
          when(ctx.config()).thenReturn(new IgniteConfiguration());
          when(ctx.discovery()).thenReturn(mock(GridDiscoveryManager.class));
  
          GridSecurityProcessor secPrc = mock(GridSecurityProcessor.class);
  
          IgniteSecurityProcessor ignSecPrc = new IgniteSecurityProcessor(ctx, secPrc);
  
          ignSecPrc.withContext(UUID.randomUUID());
      }
test_case.class_method_signature: IgniteSecurityProcessorTest.testThrowIllegalStateExceptionIfNodeNotFoundInDiscoCache()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void testThrowIllegalStateExceptionIfNodeNotFoundInDiscoCache()
test_case.identifier: testThrowIllegalStateExceptionIfNodeNotFoundInDiscoCache
test_case.invocations: mock thenReturn when config thenReturn when discovery mock mock withContext randomUUID
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testThrowIllegalStateExceptionIfNodeNotFoundInDiscoCache()
focal_class.declarator: ATTR_GRID_SEC_PROC_CLASS = "grid.security.processor.class"
focal_class.modifier: public static final
focal_class.original_string: public static final String ATTR_GRID_SEC_PROC_CLASS = "grid.security.processor.class";
focal_class.type: String
focal_class.var_name: ATTR_GRID_SEC_PROC_CLASS
focal_class.declarator: ctx
focal_class.modifier: private final
focal_class.original_string: private final GridKernalContext ctx;
focal_class.type: GridKernalContext
focal_class.var_name: ctx
focal_class.declarator: secPrc
focal_class.modifier: private final
focal_class.original_string: private final GridSecurityProcessor secPrc;
focal_class.type: GridSecurityProcessor
focal_class.var_name: secPrc
focal_class.declarator: marsh
focal_class.modifier: private final
focal_class.original_string: private final JdkMarshaller marsh;
focal_class.type: JdkMarshaller
focal_class.var_name: marsh
focal_class.declarator: secCtxs = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<UUID, SecurityContext> secCtxs = new ConcurrentHashMap<>();
focal_class.type: Map<UUID, SecurityContext>
focal_class.var_name: secCtxs
focal_class.declarator: log
focal_class.modifier: private final
focal_class.original_string: private final IgniteLogger log;
focal_class.type: IgniteLogger
focal_class.var_name: log
focal_class.declarator: curSecCtx = ThreadLocal.withInitial(this::localSecurityContext)
focal_class.modifier: private volatile
focal_class.original_string: private volatile ThreadLocal<SecurityContext> curSecCtx = ThreadLocal.withInitial(this::localSecurityContext);
focal_class.type: ThreadLocal<SecurityContext>
focal_class.var_name: curSecCtx
focal_class.file: modules/core/src/main/java/org/apache/ignite/internal/processors/security/IgniteSecurityProcessor.java
focal_class.identifier: IgniteSecurityProcessor
focal_class.interfaces: implements IgniteSecurity, GridProcessor
focal_class.class_method_signature: IgniteSecurityProcessor.IgniteSecurityProcessor(GridKernalContext ctx, GridSecurityProcessor secPrc)
focal_class.full_signature: public  IgniteSecurityProcessor(GridKernalContext ctx, GridSecurityProcessor secPrc)
focal_class.identifier: IgniteSecurityProcessor
focal_class.modifiers: public
focal_class.parameters: (GridKernalContext ctx, GridSecurityProcessor secPrc)
focal_class.signature:  IgniteSecurityProcessor(GridKernalContext ctx, GridSecurityProcessor secPrc)
focal_class.class_method_signature: IgniteSecurityProcessor.withContext(SecurityContext secCtx)
focal_class.full_signature: @Override public OperationSecurityContext withContext(SecurityContext secCtx)
focal_class.identifier: withContext
focal_class.modifiers: @Override public
focal_class.parameters: (SecurityContext secCtx)
focal_class.return: OperationSecurityContext
focal_class.signature: OperationSecurityContext withContext(SecurityContext secCtx)
focal_class.class_method_signature: IgniteSecurityProcessor.withContext(UUID subjId)
focal_class.full_signature: @Override public OperationSecurityContext withContext(UUID subjId)
focal_class.identifier: withContext
focal_class.modifiers: @Override public
focal_class.parameters: (UUID subjId)
focal_class.return: OperationSecurityContext
focal_class.signature: OperationSecurityContext withContext(UUID subjId)
focal_class.class_method_signature: IgniteSecurityProcessor.securityContext()
focal_class.full_signature: @Override public SecurityContext securityContext()
focal_class.identifier: securityContext
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SecurityContext
focal_class.signature: SecurityContext securityContext()
focal_class.class_method_signature: IgniteSecurityProcessor.authenticateNode(ClusterNode node, SecurityCredentials cred)
focal_class.full_signature: @Override public SecurityContext authenticateNode(ClusterNode node, SecurityCredentials cred)
focal_class.identifier: authenticateNode
focal_class.modifiers: @Override public
focal_class.parameters: (ClusterNode node, SecurityCredentials cred)
focal_class.return: SecurityContext
focal_class.signature: SecurityContext authenticateNode(ClusterNode node, SecurityCredentials cred)
focal_class.class_method_signature: IgniteSecurityProcessor.isGlobalNodeAuthentication()
focal_class.full_signature: @Override public boolean isGlobalNodeAuthentication()
focal_class.identifier: isGlobalNodeAuthentication
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isGlobalNodeAuthentication()
focal_class.class_method_signature: IgniteSecurityProcessor.authenticate(AuthenticationContext ctx)
focal_class.full_signature: @Override public SecurityContext authenticate(AuthenticationContext ctx)
focal_class.identifier: authenticate
focal_class.modifiers: @Override public
focal_class.parameters: (AuthenticationContext ctx)
focal_class.return: SecurityContext
focal_class.signature: SecurityContext authenticate(AuthenticationContext ctx)
focal_class.class_method_signature: IgniteSecurityProcessor.authenticatedSubjects()
focal_class.full_signature: @Override public Collection<SecuritySubject> authenticatedSubjects()
focal_class.identifier: authenticatedSubjects
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<SecuritySubject>
focal_class.signature: Collection<SecuritySubject> authenticatedSubjects()
focal_class.class_method_signature: IgniteSecurityProcessor.authenticatedSubject(UUID subjId)
focal_class.full_signature: @Override public SecuritySubject authenticatedSubject(UUID subjId)
focal_class.identifier: authenticatedSubject
focal_class.modifiers: @Override public
focal_class.parameters: (UUID subjId)
focal_class.return: SecuritySubject
focal_class.signature: SecuritySubject authenticatedSubject(UUID subjId)
focal_class.class_method_signature: IgniteSecurityProcessor.onSessionExpired(UUID subjId)
focal_class.full_signature: @Override public void onSessionExpired(UUID subjId)
focal_class.identifier: onSessionExpired
focal_class.modifiers: @Override public
focal_class.parameters: (UUID subjId)
focal_class.return: void
focal_class.signature: void onSessionExpired(UUID subjId)
focal_class.class_method_signature: IgniteSecurityProcessor.authorize(String name, SecurityPermission perm)
focal_class.full_signature: @Override public void authorize(String name, SecurityPermission perm)
focal_class.identifier: authorize
focal_class.modifiers: @Override public
focal_class.parameters: (String name, SecurityPermission perm)
focal_class.return: void
focal_class.signature: void authorize(String name, SecurityPermission perm)
focal_class.class_method_signature: IgniteSecurityProcessor.enabled()
focal_class.full_signature: @Override public boolean enabled()
focal_class.identifier: enabled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean enabled()
focal_class.class_method_signature: IgniteSecurityProcessor.start()
focal_class.full_signature: @Override public void start()
focal_class.identifier: start
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: IgniteSecurityProcessor.stop(boolean cancel)
focal_class.full_signature: @Override public void stop(boolean cancel)
focal_class.identifier: stop
focal_class.modifiers: @Override public
focal_class.parameters: (boolean cancel)
focal_class.return: void
focal_class.signature: void stop(boolean cancel)
focal_class.class_method_signature: IgniteSecurityProcessor.onKernalStart(boolean active)
focal_class.full_signature: @Override public void onKernalStart(boolean active)
focal_class.identifier: onKernalStart
focal_class.modifiers: @Override public
focal_class.parameters: (boolean active)
focal_class.return: void
focal_class.signature: void onKernalStart(boolean active)
focal_class.class_method_signature: IgniteSecurityProcessor.onKernalStop(boolean cancel)
focal_class.full_signature: @Override public void onKernalStop(boolean cancel)
focal_class.identifier: onKernalStop
focal_class.modifiers: @Override public
focal_class.parameters: (boolean cancel)
focal_class.return: void
focal_class.signature: void onKernalStop(boolean cancel)
focal_class.class_method_signature: IgniteSecurityProcessor.collectJoiningNodeData(DiscoveryDataBag dataBag)
focal_class.full_signature: @Override public void collectJoiningNodeData(DiscoveryDataBag dataBag)
focal_class.identifier: collectJoiningNodeData
focal_class.modifiers: @Override public
focal_class.parameters: (DiscoveryDataBag dataBag)
focal_class.return: void
focal_class.signature: void collectJoiningNodeData(DiscoveryDataBag dataBag)
focal_class.class_method_signature: IgniteSecurityProcessor.collectGridNodeData(DiscoveryDataBag dataBag)
focal_class.full_signature: @Override public void collectGridNodeData(DiscoveryDataBag dataBag)
focal_class.identifier: collectGridNodeData
focal_class.modifiers: @Override public
focal_class.parameters: (DiscoveryDataBag dataBag)
focal_class.return: void
focal_class.signature: void collectGridNodeData(DiscoveryDataBag dataBag)
focal_class.class_method_signature: IgniteSecurityProcessor.onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
focal_class.full_signature: @Override public void onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
focal_class.identifier: onGridDataReceived
focal_class.modifiers: @Override public
focal_class.parameters: (DiscoveryDataBag.GridDiscoveryData data)
focal_class.return: void
focal_class.signature: void onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
focal_class.class_method_signature: IgniteSecurityProcessor.onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
focal_class.full_signature: @Override public void onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
focal_class.identifier: onJoiningNodeDataReceived
focal_class.modifiers: @Override public
focal_class.parameters: (DiscoveryDataBag.JoiningNodeDiscoveryData data)
focal_class.return: void
focal_class.signature: void onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
focal_class.class_method_signature: IgniteSecurityProcessor.printMemoryStats()
focal_class.full_signature: @Override public void printMemoryStats()
focal_class.identifier: printMemoryStats
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void printMemoryStats()
focal_class.class_method_signature: IgniteSecurityProcessor.validateNode(ClusterNode node)
focal_class.full_signature: @Override public @Nullable IgniteNodeValidationResult validateNode(ClusterNode node)
focal_class.identifier: validateNode
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (ClusterNode node)
focal_class.return: IgniteNodeValidationResult
focal_class.signature: IgniteNodeValidationResult validateNode(ClusterNode node)
focal_class.class_method_signature: IgniteSecurityProcessor.validateNode(ClusterNode node,
          DiscoveryDataBag.JoiningNodeDiscoveryData discoData)
focal_class.full_signature: @Override public @Nullable IgniteNodeValidationResult validateNode(ClusterNode node,
          DiscoveryDataBag.JoiningNodeDiscoveryData discoData)
focal_class.identifier: validateNode
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (ClusterNode node,
          DiscoveryDataBag.JoiningNodeDiscoveryData discoData)
focal_class.return: IgniteNodeValidationResult
focal_class.signature: IgniteNodeValidationResult validateNode(ClusterNode node,
          DiscoveryDataBag.JoiningNodeDiscoveryData discoData)
focal_class.class_method_signature: IgniteSecurityProcessor.discoveryDataType()
focal_class.full_signature: @Override public @Nullable DiscoveryDataExchangeType discoveryDataType()
focal_class.identifier: discoveryDataType
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: ()
focal_class.return: DiscoveryDataExchangeType
focal_class.signature: DiscoveryDataExchangeType discoveryDataType()
focal_class.class_method_signature: IgniteSecurityProcessor.onDisconnected(IgniteFuture<?> reconnectFut)
focal_class.full_signature: @Override public void onDisconnected(IgniteFuture<?> reconnectFut)
focal_class.identifier: onDisconnected
focal_class.modifiers: @Override public
focal_class.parameters: (IgniteFuture<?> reconnectFut)
focal_class.return: void
focal_class.signature: void onDisconnected(IgniteFuture<?> reconnectFut)
focal_class.class_method_signature: IgniteSecurityProcessor.onReconnected(
          boolean clusterRestarted)
focal_class.full_signature: @Override public @Nullable IgniteInternalFuture<?> onReconnected(
          boolean clusterRestarted)
focal_class.identifier: onReconnected
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (
          boolean clusterRestarted)
focal_class.return: IgniteInternalFuture<?>
focal_class.signature: IgniteInternalFuture<?> onReconnected(
          boolean clusterRestarted)
focal_class.class_method_signature: IgniteSecurityProcessor.localSecurityContext()
focal_class.full_signature: private SecurityContext localSecurityContext()
focal_class.identifier: localSecurityContext
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: SecurityContext
focal_class.signature: SecurityContext localSecurityContext()
focal_class.class_method_signature: IgniteSecurityProcessor.validateSecProcClass(ClusterNode node)
focal_class.full_signature: private IgniteNodeValidationResult validateSecProcClass(ClusterNode node)
focal_class.identifier: validateSecProcClass
focal_class.modifiers: private
focal_class.parameters: (ClusterNode node)
focal_class.return: IgniteNodeValidationResult
focal_class.signature: IgniteNodeValidationResult validateSecProcClass(ClusterNode node)
focal_class.class_method_signature: IgniteSecurityProcessor.gridSecurityProcessor()
focal_class.full_signature: public GridSecurityProcessor gridSecurityProcessor()
focal_class.identifier: gridSecurityProcessor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: GridSecurityProcessor
focal_class.signature: GridSecurityProcessor gridSecurityProcessor()
focal_method.body: @Override public OperationSecurityContext withContext(SecurityContext secCtx) {
          assert secCtx != null;
  
          secPrc.touch(secCtx);
  
          SecurityContext old = curSecCtx.get();
  
          curSecCtx.set(secCtx);
  
          return new OperationSecurityContext(this, old);
      }
focal_method.class_method_signature: IgniteSecurityProcessor.withContext(SecurityContext secCtx)
focal_method.full_signature: @Override public OperationSecurityContext withContext(SecurityContext secCtx)
focal_method.identifier: withContext
focal_method.invocations: touch get set
focal_method.modifiers: @Override public
focal_method.parameters: (SecurityContext secCtx)
focal_method.return: OperationSecurityContext
focal_method.signature: OperationSecurityContext withContext(SecurityContext secCtx)