Package ch.astorm.smtp4j.store
Class SimpleUserRepository
java.lang.Object
ch.astorm.smtp4j.store.SimpleUserRepository
- All Implemented Interfaces:
UserRepository
A basic user repository.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the givenuserwith itspassword.Returns anUserAuthenticatorfor this repository.voidremoveUser(String user) Removes the givenuser.
-
Constructor Details
-
SimpleUserRepository
public SimpleUserRepository()
-
-
Method Details
-
addUser
Adds the givenuserwith itspassword.- Specified by:
addUserin interfaceUserRepository
-
removeUser
Removes the givenuser.- Specified by:
removeUserin interfaceUserRepository
-
getAuthenticator
Description copied from interface:UserRepositoryReturns anUserAuthenticatorfor this repository.- Specified by:
getAuthenticatorin interfaceUserRepository
-