Interface UserSubstitutionManager

All Known Implementing Classes:
UserSubstitutionManagerImpl

public interface UserSubstitutionManager
Interface is used for getting possible substituted users and for performing the substitution operation.
  • Method Details

    • getCurrentSubstitutedUsers

      List<org.springframework.security.core.userdetails.UserDetails> getCurrentSubstitutedUsers()
      Returns:
      users which can be substituted by the currently authenticated user at the current time
    • getSubstitutedUsers

      List<org.springframework.security.core.userdetails.UserDetails> getSubstitutedUsers(String username, Date date)
      Returns:
      users which can be substituted by user with specified username at the given date
    • substituteUser

      void substituteUser(String substitutedUserName)
      Performs user substitution
      Throws:
      IllegalArgumentException - if current user isn't allowed to substitute user with specified name