Package io.jmix.core.security
Class SecurityContextHelper
java.lang.Object
io.jmix.core.security.SecurityContextHelper
Helper class to get/set Authentication in the current
SecurityContext
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.security.core.Authentication
Returns current Authentication or null if the current context has no Authenticationstatic void
setAuthentication
(org.springframework.security.core.Authentication authentication) Sets the Authentication in the currentSecurityContext
.
-
Constructor Details
-
SecurityContextHelper
public SecurityContextHelper()
-
-
Method Details
-
getAuthentication
@Nullable public static org.springframework.security.core.Authentication getAuthentication()Returns current Authentication or null if the current context has no Authentication -
setAuthentication
public static void setAuthentication(@Nullable org.springframework.security.core.Authentication authentication) Sets the Authentication in the currentSecurityContext
.
-