org.springframework.security.provisioning
Interface UserDetailsManager

All Superinterfaces:
UserDetailsService
All Known Implementing Classes:
JdbcUserDetailsManager, LdapUserDetailsManager

public interface UserDetailsManager
extends UserDetailsService

An extension of the UserDetailsService which provides the ability to create new users and update existing ones.

Since:
2.0
Version:
$Id: UserDetailsManager.java 3558 2009-04-15 07:39:21Z ltaylor $
Author:
Luke Taylor

Method Summary
 void changePassword(String oldPassword, String newPassword)
          Modify the current user's password.
 void createUser(UserDetails user)
          Create a new user with the supplied details.
 void deleteUser(String username)
          Remove the user with the given login name from the system.
 void updateUser(UserDetails user)
          Update the specified user.
 boolean userExists(String username)
          Check if a user with the supplied login name exists in the system.
 
Methods inherited from interface org.springframework.security.core.userdetails.UserDetailsService
loadUserByUsername
 

Method Detail

createUser

void createUser(UserDetails user)
Create a new user with the supplied details.


updateUser

void updateUser(UserDetails user)
Update the specified user.


deleteUser

void deleteUser(String username)
Remove the user with the given login name from the system.


changePassword

void changePassword(String oldPassword,
                    String newPassword)
Modify the current user's password. This should change the user's password in the persistent user repository (datbase, LDAP etc) and should also modify the current security context to contain the new password.

Parameters:
oldPassword - current password (for re-authentication if required)
newPassword - the password to change to

userExists

boolean userExists(String username)
Check if a user with the supplied login name exists in the system.



Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.