|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.security.ExternalUserManager
public class ExternalUserManager
Manages the JAAS users.
Field Summary |
---|
Fields inherited from interface info.magnolia.cms.security.UserManager |
---|
ANONYMOUS_USER, SYSTEM_PSWD, SYSTEM_USER |
Constructor Summary | |
---|---|
ExternalUserManager()
|
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()
SystemUserManager does this. |
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()
SystemUserManager does this. |
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 ExternalUserManager()
Method Detail |
---|
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
getUser
in interface UserManager
subject
-
java.lang.UnsupportedOperationException
public 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 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 getSystemUser() throws java.lang.UnsupportedOperationException
getSystemUser
in interface UserManager
java.lang.UnsupportedOperationException
- if the current implementation doesn't support this operationpublic User getAnonymousUser() throws java.lang.UnsupportedOperationException
getAnonymousUser
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 |