Package org.jivesoftware.openfire.user
Class POP3UserProvider
- java.lang.Object
-
- org.jivesoftware.openfire.user.DefaultUserProvider
-
- org.jivesoftware.openfire.user.POP3UserProvider
-
- All Implemented Interfaces:
UserProvider
public class POP3UserProvider extends DefaultUserProvider
A UserProvider to be used in conjunction withPOP3AuthProvider
, which authenticates using a POP3 server. New user accounts will automatically be created as needed (upon successful initial authentication) and are subsequently treated as read-only (for the most part). To enable this provider, edit the XML config file and set:<provider> <auth> <className>org.jivesoftware.openfire.auth.POP3AuthProvider</className> </auth> <user> <className>org.jivesoftware.openfire.user.POP3UserProvider</className> </user> </provider>
- Author:
- Sean Meiners
- See Also:
POP3AuthProvider
-
-
Constructor Summary
Constructors Constructor Description POP3UserProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setEmail(String username, String email)
Sets the user's email address.-
Methods inherited from class org.jivesoftware.openfire.user.DefaultUserProvider
createUser, deleteUser, findUsers, findUsers, getSearchFields, getUserCount, getUsernames, getUsers, getUsers, isEmailRequired, isNameRequired, isReadOnly, loadUser, setCreationDate, setModificationDate, setName
-
-
-
-
Method Detail
-
setEmail
public void setEmail(String username, String email) throws UserNotFoundException
Description copied from interface:UserProvider
Sets the user's email address. This method should throw an UnsupportedOperationException if this operation is not supported by the backend user store.- Specified by:
setEmail
in interfaceUserProvider
- Overrides:
setEmail
in classDefaultUserProvider
- Parameters:
username
- the username.email
- the email address.- Throws:
UserNotFoundException
- if the user could not be found.
-
-