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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.springframework.security.core.AuthenticationReturns current Authentication or null if the current context has no Authenticationstatic voidsetAuthentication(org.springframework.security.core.Authentication authentication) Sets the Authentication in the currentSecurityContext.
- 
Constructor Details- 
SecurityContextHelperpublic 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
- 
setAuthenticationpublic static void setAuthentication(@Nullable org.springframework.security.core.Authentication authentication) Sets the Authentication in the currentSecurityContext.
 
-