org.wamblee.security.authentication
Class AbstractUserSet

java.lang.Object
  extended by org.wamblee.security.authentication.AbstractUserSet
All Implemented Interfaces:
UserSet
Direct Known Subclasses:
InMemoryUserSet, JpaUserSet

public abstract class AbstractUserSet
extends java.lang.Object
implements UserSet

User set base class.


Constructor Summary
protected AbstractUserSet(NameValidator aPasswordValidator, MessageDigester aPasswordEncoder)
          Creates a new AbstractUserSet object.
 
Method Summary
 User createUser(java.lang.String aUsername, java.lang.String aPassword)
          Creates a user.
protected  void setPasswordInfo(User aUser)
          Sets the password validtor and encoder in the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wamblee.security.authentication.UserSet
add, clearCache, contains, find, list, list, remove, size, userModified
 

Constructor Detail

AbstractUserSet

protected AbstractUserSet(NameValidator aPasswordValidator,
                          MessageDigester aPasswordEncoder)
Creates a new AbstractUserSet object.

Method Detail

setPasswordInfo

protected void setPasswordInfo(User aUser)
Sets the password validtor and encoder in the user.

Parameters:
aUser - User.

createUser

public User createUser(java.lang.String aUsername,
                       java.lang.String aPassword)
Description copied from interface: UserSet
Creates a user.

Specified by:
createUser in interface UserSet
Parameters:
aUsername - User name.
aPassword - Password.
Returns:
New user.


Copyright © 2022. All Rights Reserved.