Interface UserManager

All Known Implementing Classes:
AbstractDatabaseUserRepository

public interface UserManager
Interface provides API for some actions with users
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    changePassword(String userName, String oldPassword, String newPassword)
    Changes the password for the specific user.
    Map<org.springframework.security.core.userdetails.UserDetails,String>
    resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users)
    Changes the password for the specific user.
    void
    resetRememberMe(Collection<org.springframework.security.core.userdetails.UserDetails> users)
    Resets 'remember me' token for the specific user.
  • Method Details

    • changePassword

      void changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword) throws PasswordNotMatchException
      Changes the password for the specific user.
      Parameters:
      userName - - users login
      oldPassword - - non encoded old users password
      newPassword - - non encoded new users password
      Throws:
      PasswordNotMatchException - if the oldPassword is not null and the oldPassword does not equal to the current password or if the oldPassword is null and the newPassword does equal the current password
    • resetPasswords

      Map<org.springframework.security.core.userdetails.UserDetails,String> resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users)
      Changes the password for the specific user.
      Parameters:
      users - - users which need reset passwords
      Returns:
      map which contains new password for specific user
    • resetRememberMe

      void resetRememberMe(Collection<org.springframework.security.core.userdetails.UserDetails> users)
      Resets 'remember me' token for the specific user.
      Parameters:
      users - - users which need reset 'remember me' token