info.magnolia.cms.security
Class ExternalUserManager

java.lang.Object
  extended by info.magnolia.cms.security.ExternalUserManager
All Implemented Interfaces:
UserManager

public class ExternalUserManager
extends Object
implements UserManager

Manages the JAAS users.

Version:
$Revision:9391 $ ($Author:scharles $)
Author:
philipp

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, 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()
          SystemUserManager does this.
 User getSystemUser()
          SystemUserManager does this.
 User getUser(String name)
          Find a specific user.
 User getUser(Subject subject)
          Initialize new user using JAAS authenticated/authorized subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalUserManager

public ExternalUserManager()
Method Detail

getUser

public User getUser(String name)
             throws UnsupportedOperationException
Description copied from interface: UserManager
Find a specific user. Not all implementations will support this method.

Specified by:
getUser in interface UserManager
Parameters:
name - the name of the user
Returns:
the user object
Throws:
UnsupportedOperationException

getUser

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

Specified by:
getUser in interface UserManager
Parameters:
subject -
Throws:
UnsupportedOperationException

getAllUsers

public Collection<User> getAllUsers()
                             throws UnsupportedOperationException
Description copied from interface: UserManager
Get all users.

Specified by:
getAllUsers in interface UserManager
Returns:
collection of User objects
Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

createUser

public User createUser(String name,
                       String pw)
                throws UnsupportedOperationException
Description copied from interface: UserManager
Creates a user without security restrictions.

Specified by:
createUser in interface UserManager
Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

changePassword

public void changePassword(User user,
                           String newPassword)
                    throws UnsupportedOperationException
Description copied from interface: UserManager
Sets a new password.

Specified by:
changePassword in interface UserManager
Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

getSystemUser

public User getSystemUser()
                   throws UnsupportedOperationException
SystemUserManager does this.

Specified by:
getSystemUser in interface UserManager
Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation

getAnonymousUser

public User getAnonymousUser()
                      throws UnsupportedOperationException
SystemUserManager does this.

Specified by:
getAnonymousUser in interface UserManager
Throws:
UnsupportedOperationException - if the current implementation doesn't support this operation


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