| java.lang.Object com.ivata.groupware.admin.security.server.PlainTextSecurityServer
PlainTextSecurityServer | public class PlainTextSecurityServer implements SecurityServer(Code) | | Simple security server which compares passwords against plain text values in
the CMP layer.
This security server is not very secure! You are advised not to use this but
to set up an IMAP server with the MailServer
class from the webmail subproject.
since: 2004-05-11 version: $Revision: 1.8 $ author: Colin MacLeod author: colin.macleod@ivata.com |
Constructor Summary | |
public | PlainTextSecurityServer(QueryPersistenceManager persistenceManagerParam) Construct and initialize the Securtiy Server implementation. |
Method Summary | |
public void | addUser(SecuritySession securitySession, String userName, String fullName) Add a new user to the system. | public boolean | checkPassword(SecuritySession securitySession, String userName, String password) Check the password for a user is correct.
Parameters: securitySession - Used to authenticate the current user againstthe persistence rights. Parameters: userName - name of the user for whom to check the password. Parameters: password - the new password value to check against the system. | final public String | getSystemUserName(SecuritySession securitySession, String userName) | final public String | getUserNameFromSystemUserName(SecuritySession securitySession, String systemUserName) | public boolean | isUser(SecuritySession securitySession, String userNameParam) | public SecuritySession | login(UserDO user, String password) | public SecuritySession | loginGuest() | public void | removeUser(SecuritySession securitySession, String userName) | final public void | setPassword(SecuritySession securitySession, String userName, String password) |
PlainTextSecurityServer | public PlainTextSecurityServer(QueryPersistenceManager persistenceManagerParam)(Code) | | Construct and initialize the Securtiy Server implementation.
Parameters: persistenceManagerParam - persistence manager used to store/retrievedata objects from the peristence store. |
addUser | public void addUser(SecuritySession securitySession, String userName, String fullName) throws SystemException(Code) | | Add a new user to the system.
Parameters: securitySession - Can be used to authenticate the current user.Not checked in this implementation. Parameters: userName - user name to add. Parameters: fullName - full name under which the user will be filed. throws: SystemException - if this user cannot be added. |
checkPassword | public boolean checkPassword(SecuritySession securitySession, String userName, String password) throws SystemException(Code) | | Check the password for a user is correct.
Parameters: securitySession - Used to authenticate the current user againstthe persistence rights. Parameters: userName - name of the user for whom to check the password. Parameters: password - the new password value to check against the system. true if the passwords match, otherwisefalse . throws: SystemException - If the password cannot be checked for anyreason. |
getUserNameFromSystemUserName | final public String getUserNameFromSystemUserName(SecuritySession securitySession, String systemUserName)(Code) | | Parameters: securitySession - Parameters: systemUserName - |
login | public SecuritySession login(UserDO user, String password) throws SystemException(Code) | | Login to an authentication server using the user name and password
provided.
Parameters: user - user to login to the server. Parameters: password - used to login to the server valid session for this username password combination. throws: SystemException - if this user cannot be authenticated. |
removeUser | public void removeUser(SecuritySession securitySession, String userName) throws SystemException(Code) | | Remove the user with the given name from the system.
Parameters: securitySession - Parameters: userName - name of the user to be removed. throws: SystemException - if this user cannot be removed. |
setPassword | final public void setPassword(SecuritySession securitySession, String userName, String password) throws SystemException(Code) | | Set the password for a user.
Parameters: securitySession - Parameters: userName - name of the user for whom to set the password. Parameters: password - the new password value to set. throws: SystemException - if the password cannot be set for anyreason. |
|
|