info.magnolia.cms.security
Interface UserManager

All Known Implementing Classes:
DelegatingUserManager, ExternalUserManager, HierarchicalUserManager, MgnlUserManager, RescueSecuritySupport.RescueUserManager, SystemUserManager

public interface UserManager

Manages users.

Version:
$Revision: 48805 $ ($Author: ochytil $)

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

SYSTEM_USER

static final String SYSTEM_USER
Magnolia system user name.

See Also:
Constant Field Values

SYSTEM_PSWD

static final String SYSTEM_PSWD
Magnolia system default password.

See Also:
Constant Field Values

ANONYMOUS_USER

static final String ANONYMOUS_USER
Anonymous user name.

See Also:
Constant Field Values
Method Detail

getUser

User getUser(String name)
             throws UnsupportedOperationException
Find a specific user. Not all implementations will support this method.

Parameters:
name - the name of the user
Returns:
the user object
Throws:
UnsupportedOperationException

getUser

User getUser(Subject subject)
             throws UnsupportedOperationException
Initialize new user using JAAS authenticated/authorized subject.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

getSystemUser

User getSystemUser()
                   throws UnsupportedOperationException
Get system user, this user must always exist in magnolia repository.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

getAnonymousUser

User getAnonymousUser()
                      throws UnsupportedOperationException
Get Anonymous user, this user must always exist in magnolia repository.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

getAllUsers

Collection<User> getAllUsers()
                             throws UnsupportedOperationException
Get all users.

Returns:
collection of User objects
Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

createUser

User createUser(String name,
                String pw)
                throws UnsupportedOperationException
Creates a user without security restrictions.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

changePassword

void changePassword(User user,
                    String newPassword)
                    throws UnsupportedOperationException
Sets a new password.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

setLockTimePeriod

void setLockTimePeriod(long lockTimePeriod)
                       throws UnsupportedOperationException
Sets a time in minutes for which account will be locked out in case of reaching maximum count of failed login attempts.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

getLockTimePeriod

long getLockTimePeriod()
                       throws UnsupportedOperationException
Gets a time in minutes for which account will be locked out in case of reaching maximum count of failed login attempts.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

setMaxFailedLoginAttempts

void setMaxFailedLoginAttempts(int maxFailedLoginAttempts)
                               throws UnsupportedOperationException
Sets a number of failed attempts before locking account.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

getMaxFailedLoginAttempts

int getMaxFailedLoginAttempts()
                              throws UnsupportedOperationException
Gets a number of failed attempts before locking account.

Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.