public class PropertiesUserManagerFactory extends Object implements UserManagerFactory
UserManager
implementation.Constructor and Description |
---|
PropertiesUserManagerFactory() |
Modifier and Type | Method and Description |
---|---|
UserManager |
createUserManager()
Creates a
PropertiesUserManager instance based on the provided configuration |
String |
getAdminName()
Get the admin name.
|
File |
getFile()
Retrieve the file used to load and store users
|
PasswordEncryptor |
getPasswordEncryptor()
Retrieve the password encryptor used by user managers created by this factory
|
URL |
getUrl()
Retrieve the URL used to load and store users
|
void |
setAdminName(String adminName)
Set the name to use as the administrator of the server.
|
void |
setFile(File propFile)
Set the file used to store and read users.
|
void |
setPasswordEncryptor(PasswordEncryptor passwordEncryptor)
Set the password encryptor to use by user managers created by this factory
|
void |
setUrl(URL userDataURL)
Set the URL used to store and read users.
|
public UserManager createUserManager()
PropertiesUserManager
instance based on the provided configurationcreateUserManager
in interface UserManagerFactory
UserManager
public String getAdminName()
public void setAdminName(String adminName)
adminName
- The administrator user namepublic File getFile()
public void setFile(File propFile)
propFile
- A file containing userspublic void setUrl(URL userDataURL)
userDataURL
- A URL
containing userspublic PasswordEncryptor getPasswordEncryptor()
Md5PasswordEncryptor
if no other has been providedpublic void setPasswordEncryptor(PasswordEncryptor passwordEncryptor)
passwordEncryptor
- The password encryptorCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.