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 Userpublic void setPassword(String pass)
public List<Authority> getAuthorities()
UsergetAuthorities in interface Userpublic int getMaxIdleTime()
getMaxIdleTime in interface Userpublic void setMaxIdleTime(int idleSec)
public boolean getEnabled()
getEnabled in interface Userpublic void setEnabled(boolean enb)
public String getHomeDirectory()
getHomeDirectory in interface Userpublic void setHomeDirectory(String home)
public AuthorizationRequest authorize(AuthorizationRequest request)
AuthorizationRequest for this userauthorize in interface Userrequest - The AuthorizationRequest to authorizeCopyright © 2003–2025 The Apache Software Foundation. All rights reserved.