|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManager
Manages users.
Field Summary | |
---|---|
static String |
ANONYMOUS_USER
Anonymous user name. |
static String |
SYSTEM_PSWD
Magnolia system default password. |
static String |
SYSTEM_USER
Magnolia system user name. |
Method Summary | |
---|---|
void |
changePassword(User user,
String newPassword)
Sets a new password. |
User |
createUser(String name,
String pw)
Creates a user without security restrictions. |
Collection<User> |
getAllUsers()
Get all users. |
User |
getAnonymousUser()
Get Anonymous user, this user must always exist in magnolia repository. |
long |
getLockTimePeriod()
Gets a time in minutes for which account will be locked out in case of reaching maximum count of failed login attempts. |
int |
getMaxFailedLoginAttempts()
Gets a number of failed attempts before locking account. |
User |
getSystemUser()
Get system user, this user must always exist in magnolia repository. |
User |
getUser(String name)
Find a specific user. |
User |
getUser(Subject subject)
Initialize new user using JAAS authenticated/authorized subject. |
void |
setLockTimePeriod(long lockTimePeriod)
Sets a time in minutes for which account will be locked out in case of reaching maximum count of failed login attempts. |
void |
setMaxFailedLoginAttempts(int maxFailedLoginAttempts)
Sets a number of failed attempts before locking account. |
Field Detail |
---|
static final String SYSTEM_USER
static final String SYSTEM_PSWD
static final String ANONYMOUS_USER
Method Detail |
---|
User getUser(String name) throws UnsupportedOperationException
name
- the name of the user
UnsupportedOperationException
User getUser(Subject subject) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationUser getSystemUser() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationUser getAnonymousUser() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationCollection<User> getAllUsers() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationUser createUser(String name, String pw) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationvoid changePassword(User user, String newPassword) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationvoid setLockTimePeriod(long lockTimePeriod) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationlong getLockTimePeriod() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationvoid setMaxFailedLoginAttempts(int maxFailedLoginAttempts) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationint getMaxFailedLoginAttempts() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |