Package io.jmix.core.security.impl
Class SystemAuthenticatorSupport
java.lang.Object
io.jmix.core.security.impl.SystemAuthenticatorSupport
- Direct Known Subclasses:
SystemAuthenticatorImpl
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 Summary
FieldsModifier and TypeFieldDescriptionprotected ThreadLocal<Deque<org.springframework.security.core.context.SecurityContext>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable org.springframework.security.core.context.SecurityContextprotected voidpushSecurityContext(org.springframework.security.core.context.SecurityContext securityContext)
-
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()
-