|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManager
Manages users.
Field Summary | |
---|---|
static java.lang.String |
ANONYMOUS_USER
Anonymous user name. |
static java.lang.String |
SYSTEM_PSWD
Magnolia system default password. |
static java.lang.String |
SYSTEM_USER
Magnolia system user name. |
Method Summary | |
---|---|
void |
changePassword(User user,
java.lang.String newPassword)
Sets a new password. |
User |
createUser(java.lang.String name,
java.lang.String pw)
Creates a user without security restrictions. |
java.util.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(java.lang.String name)
Find a specific user. |
User |
getUser(javax.security.auth.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 java.lang.String SYSTEM_USER
static final java.lang.String SYSTEM_PSWD
static final java.lang.String ANONYMOUS_USER
Method Detail |
---|
User getUser(java.lang.String name) throws java.lang.UnsupportedOperationException
name
- the name of the user
java.lang.UnsupportedOperationException
User getUser(javax.security.auth.Subject subject) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationUser getSystemUser() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationUser getAnonymousUser() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationjava.util.Collection<User> getAllUsers() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationUser createUser(java.lang.String name, java.lang.String pw) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationvoid changePassword(User user, java.lang.String newPassword) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationvoid setLockTimePeriod(long lockTimePeriod) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationlong getLockTimePeriod() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationvoid setMaxFailedLoginAttempts(int maxFailedLoginAttempts) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationint getMaxFailedLoginAttempts() throws java.lang.UnsupportedOperationException
java.lang.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 |