|
||||||||||
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(java.util.Map<java.lang.String,UserManager> delegates)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingUserManager(java.util.Map<java.lang.String,UserManager> delegates)
delegates
- Method Detail |
---|
public User createUser(java.lang.String name, java.lang.String pw) throws java.lang.UnsupportedOperationException
UserManager
createUser
in interface UserManager
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationpublic void changePassword(User user, java.lang.String newPassword) throws java.lang.UnsupportedOperationException
UserManager
changePassword
in interface UserManager
java.lang.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(java.lang.String name) throws java.lang.UnsupportedOperationException
UserManager
getUser
in interface UserManager
name
- the name of the user
java.lang.UnsupportedOperationException
public User getUser(javax.security.auth.Subject subject) throws java.lang.UnsupportedOperationException
UserManager
getUser
in interface UserManager
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationpublic java.util.Collection<User> getAllUsers() throws java.lang.UnsupportedOperationException
UserManager
getAllUsers
in interface UserManager
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationpublic long getLockTimePeriod() throws java.lang.UnsupportedOperationException
UserManager
getLockTimePeriod
in interface UserManager
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationpublic int getMaxFailedLoginAttempts() throws java.lang.UnsupportedOperationException
UserManager
getMaxFailedLoginAttempts
in interface UserManager
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationpublic void setLockTimePeriod(long lockTimePeriod) throws java.lang.UnsupportedOperationException
UserManager
setLockTimePeriod
in interface UserManager
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationpublic void setMaxFailedLoginAttempts(int maxFailedLoginAttempts) throws java.lang.UnsupportedOperationException
UserManager
setMaxFailedLoginAttempts
in interface UserManager
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 |