Interface CurrentAuthenticationUserLoader

All Known Implementing Classes:
CurrentAuthenticationUserLoaderImpl

public interface CurrentAuthenticationUserLoader
Interface that encapsulates functionality for reloading the user returned by CurrentAuthentication and CurrentUserSubstitution. The reloading is necessary in order to always return the user entity in the actual state. Also in some cases security context may contain a JPA entity instance where lazy loading is broken. Reloading fixes this problem as well.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.userdetails.UserDetails
    reloadUser(org.springframework.security.core.userdetails.UserDetails user, Map<String,Object> hints)
    Returns the reloaded user instance.
  • Method Details

    • reloadUser

      org.springframework.security.core.userdetails.UserDetails reloadUser(org.springframework.security.core.userdetails.UserDetails user, Map<String,Object> hints)
      Returns the reloaded user instance. See supported hints in the CurrentUserHints.