org.apache.lenya.ac.cifs
Class CIFSUser

java.lang.Object
  extended by org.apache.lenya.ac.impl.AbstractItem
      extended by org.apache.lenya.ac.impl.AbstractGroupable
          extended by org.apache.lenya.ac.impl.AbstractUser
              extended by org.apache.lenya.ac.file.FileUser
                  extended by org.apache.lenya.ac.cifs.CIFSUser
All Implemented Interfaces:
java.io.Serializable, Accreditable, Groupable, Identifiable, Item, User

public class CIFSUser
extends FileUser

CIFS user.

Version:
$Id: CIFSUser.java 473842 2006-11-12 01:15:20Z gregor $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.lenya.ac.file.FileUser
EMAIL, GROUP, GROUPS, ID, PASSWORD, PASSWORD_ATTRIBUTE
 
Constructor Summary
CIFSUser()
          Creates a new CIFSUser object.
CIFSUser(java.io.File configurationDirectory, 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.file.FileUser
createConfiguration, delete, getConfigurationDirectory, getFile, save, setConfigurationDirectory
 
Methods inherited from class org.apache.lenya.ac.impl.AbstractUser
getEmail, getEncryptedPassword, getFullName, setEmail, setEncryptedPassword, setFullName, setPassword
 
Methods inherited from class org.apache.lenya.ac.impl.AbstractGroupable
addedToGroup, getAccreditables, getGroups, removedFromGroup, removeFromAllGroups
 
Methods inherited from class org.apache.lenya.ac.impl.AbstractItem
equals, getDescription, getId, getName, hashCode, isValidId, setDescription, setId, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.lenya.ac.Accreditable
getAccreditables
 
Methods inherited from interface org.apache.lenya.ac.Item
getDescription, getId, getName, setDescription, setName
 
Methods inherited from interface org.apache.lenya.ac.Groupable
addedToGroup, getGroups, removedFromGroup, removeFromAllGroups
 

Constructor Detail

CIFSUser

public CIFSUser()
Creates a new CIFSUser object.


CIFSUser

public CIFSUser(java.io.File configurationDirectory,
                java.lang.String id,
                java.lang.String fullName,
                java.lang.String email,
                java.lang.String password)
Create a CIFSUser

Method Detail

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 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 User
Overrides:
authenticate in class AbstractUser
Parameters:
password - to authenticate with
Returns:
true if the given password matches the password for this user


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.