Class SecurityContextHelper

java.lang.Object
io.jmix.core.security.SecurityContextHelper

public class SecurityContextHelper extends Object
Helper class to get/set Authentication in the current SecurityContext.
  • 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 current SecurityContext.