org.apache.lenya.ac.cifs
Class CIFSUser
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.ac.impl.AbstractItem
org.apache.lenya.ac.impl.AbstractGroupable
org.apache.lenya.ac.impl.AbstractUser
org.apache.lenya.ac.file.FileUser
org.apache.lenya.ac.cifs.CIFSUser
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.ac.Accreditable, org.apache.lenya.ac.Groupable, org.apache.lenya.ac.Identifiable, org.apache.lenya.ac.Item, org.apache.lenya.ac.User
public class CIFSUser
- extends FileUser
CIFS user.
- Version:
- $Id: CIFSUser.java 485769 2006-12-11 17:41:23Z andreas $
- See Also:
- Serialized Form
Constructor Summary |
CIFSUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger)
Creates a new CIFSUser object. |
CIFSUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger,
java.lang.String id,
java.lang.String fullName,
java.lang.String email,
java.lang.String password)
Create a CIFSUser |
Method Summary |
boolean |
authenticate(java.lang.String password)
Authenticate a user. |
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
Create a new CIFSUser from a configuration |
protected void |
initialize()
Initializes this user. |
Methods inherited from class org.apache.lenya.ac.impl.AbstractItem |
compareTo, equals, getAccreditableManager, getDescription, getId, getItemManager, getName, hashCode, setDescription, setId, setName, toString |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.lenya.ac.Item |
getDescription, getId, getItemManager, getName, setDescription, setName |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
Methods inherited from interface org.apache.lenya.ac.User |
getAccreditableManager |
Methods inherited from interface org.apache.lenya.ac.Accreditable |
getAccreditables |
Methods inherited from interface org.apache.lenya.ac.Groupable |
addedToGroup, getGroups, removedFromGroup, removeFromAllGroups |
CIFSUser
public CIFSUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger)
- Creates a new CIFSUser object.
- Parameters:
itemManager
- The item manager.logger
- The logger.
CIFSUser
public CIFSUser(org.apache.lenya.ac.ItemManager itemManager,
org.apache.avalon.framework.logger.Logger logger,
java.lang.String id,
java.lang.String fullName,
java.lang.String email,
java.lang.String password)
- Create a CIFSUser
- Parameters:
itemManager
- The item manager.logger
- The logger.id
- The user ID.fullName
- The user's name.email
- The e-mail address.password
- The password.
initialize
protected void initialize()
throws org.apache.avalon.framework.configuration.ConfigurationException
- Initializes this user.
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- when something went wrong.
configure
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Create a new CIFSUser from a configuration
- Specified by:
configure
in interface org.apache.lenya.ac.Item
- Overrides:
configure
in class FileUser
- Parameters:
config
- the Configuration
specifying the user
details
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if the user could not be instantiated
authenticate
public boolean authenticate(java.lang.String password)
- Authenticate a user. This is done by NTDomain Authentication using jcifs
- Specified by:
authenticate
in interface org.apache.lenya.ac.User
- Overrides:
authenticate
in class AbstractUser
- Parameters:
password
- to authenticate with
- Returns:
- true if the given password matches the password for this user
Copyright © $ Apache Software Foundation. All Rights Reserved.