public class UserFactory extends Object
User
instances.Constructor and Description |
---|
UserFactory() |
Modifier and Type | Method and Description |
---|---|
User |
createUser()
Creates a user based on the configuration set on the factory
|
List<? extends Authority> |
getAuthorities()
Get the authorities for users created by this factory
|
String |
getHomeDirectory()
Get the home directory for users created by this factory
|
int |
getMaxIdleTime()
Get the max idle time for users created by this factory
|
String |
getName()
Get the user name for users created by this factory
|
String |
getPassword()
Get the password for users created by this factory
|
boolean |
isEnabled()
Get the enabled status for users created by this factory
|
void |
setAuthorities(List<Authority> authorities)
Set the authorities for users created by this factory
|
void |
setEnabled(boolean isEnabled)
Get the enabled status for users created by this factory
|
void |
setHomeDirectory(String homeDir)
Set the user name for users created by this factory
|
void |
setMaxIdleTime(int maxIdleTimeSec)
Set the user name for users created by this factory
|
void |
setName(String name)
Set the user name for users created by this factory
|
void |
setPassword(String password)
Set the user name for users created by this factory
|
public User createUser()
public String getName()
public void setName(String name)
name
- The user namepublic String getPassword()
public void setPassword(String password)
password
- The passwordpublic int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTimeSec)
maxIdleTimeSec
- The max idle time in secondspublic String getHomeDirectory()
public void setHomeDirectory(String homeDir)
homeDir
- The home directory pathpublic boolean isEnabled()
public void setEnabled(boolean isEnabled)
isEnabled
- true if the user should be enabled (allowed to log in)public List<? extends Authority> getAuthorities()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.