public class BaseUser extends Object implements User
Constructor and Description |
---|
BaseUser()
Default constructor.
|
BaseUser(User user)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
AuthorizationRequest |
authorize(AuthorizationRequest request)
Authorize a
AuthorizationRequest for this user |
List<Authority> |
getAuthorities()
Get all authorities granted to this user
|
List<Authority> |
getAuthorities(Class<? extends Authority> clazz)
Get authorities of the specified type granted to this user
|
boolean |
getEnabled()
Get the user enable status.
|
String |
getHomeDirectory()
Get the user home directory.
|
int |
getMaxIdleTime()
Get the maximum idle time in second.
|
String |
getName()
Get the user name.
|
String |
getPassword()
Get the user password.
|
void |
setAuthorities(List<Authority> authorities) |
void |
setEnabled(boolean enb)
Set the user enable status.
|
void |
setHomeDirectory(String home)
Set the user home directory.
|
void |
setMaxIdleTime(int idleSec)
Set the maximum idle time in second.
|
void |
setName(String name)
Set user name.
|
void |
setPassword(String pass)
Set user password.
|
String |
toString()
String representation.
|
public BaseUser()
public BaseUser(User user)
public String getName()
public void setName(String name)
public String getPassword()
getPassword
in interface User
public void setPassword(String pass)
public List<Authority> getAuthorities()
User
getAuthorities
in interface User
public int getMaxIdleTime()
getMaxIdleTime
in interface User
public void setMaxIdleTime(int idleSec)
public boolean getEnabled()
getEnabled
in interface User
public void setEnabled(boolean enb)
public String getHomeDirectory()
getHomeDirectory
in interface User
public void setHomeDirectory(String home)
public AuthorizationRequest authorize(AuthorizationRequest request)
AuthorizationRequest
for this userauthorize
in interface User
request
- The AuthorizationRequest
to authorizeCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.