org.apache.lenya.ac.cifs
Class CIFSUser
java.lang.Object
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, 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
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
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.