Class SystemAuthenticatorSupport

java.lang.Object
io.jmix.core.security.impl.SystemAuthenticatorSupport
Direct Known Subclasses:
SystemAuthenticatorImpl

public abstract class SystemAuthenticatorSupport extends Object
Keeps a per-thread stack of SecurityContext instances that were current before each begin() call, so that end() can reinstall the exact previous instance.

The stored instances are never modified.

  • Field Details

    • threadLocalStack

      protected ThreadLocal<Deque<org.springframework.security.core.context.SecurityContext>> threadLocalStack
  • Constructor Details

    • SystemAuthenticatorSupport

      public SystemAuthenticatorSupport()
  • Method Details

    • pushSecurityContext

      protected void pushSecurityContext(org.springframework.security.core.context.SecurityContext securityContext)
    • pollSecurityContext

      protected @Nullable org.springframework.security.core.context.SecurityContext pollSecurityContext()