Class CurrentAuthenticationImpl

java.lang.Object
io.jmix.core.security.impl.CurrentAuthenticationImpl
All Implemented Interfaces:
CurrentAuthentication

@Component("core_CurrentAuthentication") public class CurrentAuthenticationImpl extends Object implements CurrentAuthentication
  • Constructor Details

    • CurrentAuthenticationImpl

      public CurrentAuthenticationImpl()
  • Method Details

    • getAuthentication

      public org.springframework.security.core.Authentication getAuthentication()
      Description copied from interface: CurrentAuthentication
      Returns current authentication object.
      Specified by:
      getAuthentication in interface CurrentAuthentication
    • getUser

      public org.springframework.security.core.userdetails.UserDetails getUser()
      Description copied from interface: CurrentAuthentication
      Returns the authenticated user. If you need to get the user substitution information use the CurrentUserSubstitution.
      Specified by:
      getUser in interface CurrentAuthentication
      Returns:
      currently authenticated user
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface CurrentAuthentication
      Returns:
      locale of the current authentication or default locale if current authentication doesn't contain locale information
    • getTimeZone

      public TimeZone getTimeZone()
      Specified by:
      getTimeZone in interface CurrentAuthentication
      Returns:
      time zone of the current authentication or default time zone if current authentication doesn't contain time zone information
    • isSet

      public boolean isSet()
      Specified by:
      isSet in interface CurrentAuthentication
      Returns:
      true if authentication is set to SecurityContext