|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.security.DelegatingUserManager
public class DelegatingUserManager
A UserManager
delegating to a set of user managers. The first user manager which does not
through an UnsupportedOperationException
will be used.
Field Summary |
---|
Fields inherited from interface info.magnolia.cms.security.UserManager |
---|
ANONYMOUS_USER, SYSTEM_PSWD, SYSTEM_USER |
Constructor Summary | |
---|---|
DelegatingUserManager(Map<String,UserManager> delegates)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingUserManager(Map<String,UserManager> delegates)
delegates
- Method Detail |
---|
public User createUser(String name, String pw) throws UnsupportedOperationException
UserManager
createUser
in interface UserManager
UnsupportedOperationException
- if the current implementation doesn't support this operationpublic void changePassword(User user, String newPassword) throws UnsupportedOperationException
UserManager
changePassword
in interface UserManager
UnsupportedOperationException
- if the current implementation doesn't support this operationpublic User getAnonymousUser()
UserManager
getAnonymousUser
in interface UserManager
public User getSystemUser()
UserManager
getSystemUser
in interface UserManager
public User getUser(String name) throws UnsupportedOperationException
UserManager
getUser
in interface UserManager
name
- the name of the user
UnsupportedOperationException
public User getUser(Subject subject) throws UnsupportedOperationException
UserManager
getUser
in interface UserManager
UnsupportedOperationException
- if the current implementation doesn't support this operationpublic Collection<User> getAllUsers() throws UnsupportedOperationException
UserManager
getAllUsers
in interface UserManager
UnsupportedOperationException
- if the current implementation doesn't support this operationpublic long getLockTimePeriod() throws UnsupportedOperationException
UserManager
getLockTimePeriod
in interface UserManager
UnsupportedOperationException
- if the current implementation doesn't support this operationpublic int getMaxFailedLoginAttempts() throws UnsupportedOperationException
UserManager
getMaxFailedLoginAttempts
in interface UserManager
UnsupportedOperationException
- if the current implementation doesn't support this operationpublic void setLockTimePeriod(long lockTimePeriod) throws UnsupportedOperationException
UserManager
setLockTimePeriod
in interface UserManager
UnsupportedOperationException
- if the current implementation doesn't support this operationpublic void setMaxFailedLoginAttempts(int maxFailedLoginAttempts) throws UnsupportedOperationException
UserManager
setMaxFailedLoginAttempts
in interface UserManager
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 |