org.apache.lenya.ac
Interface User

All Superinterfaces:
Accreditable, Groupable, Identifiable, Item
All Known Implementing Classes:
AbstractUser, CIFSUser, FileUser, LDAPUser

public interface User
extends Identifiable, Item, Groupable

A user.

Version:
$Id: User.java 473841 2006-11-12 00:46:38Z gregor $

Method Summary
 boolean authenticate(java.lang.String password)
          Authenticate a user.
 void delete()
          Delete a user
 java.lang.String getEmail()
          Get the email address
 void save()
          Save the user
 void setEmail(java.lang.String email)
          Set the email address
 void setPassword(java.lang.String plainTextPassword)
          Sets the password.
 
Methods inherited from interface org.apache.lenya.ac.Accreditable
getAccreditables
 
Methods inherited from interface org.apache.lenya.ac.Item
configure, getDescription, getId, getName, setConfigurationDirectory, setDescription, setName
 
Methods inherited from interface org.apache.lenya.ac.Groupable
addedToGroup, getGroups, removedFromGroup, removeFromAllGroups
 

Method Detail

getEmail

java.lang.String getEmail()
Get the email address

Returns:
a String

setEmail

void setEmail(java.lang.String email)
Set the email address

Parameters:
email - the new email address

setPassword

void setPassword(java.lang.String plainTextPassword)
Sets the password.

Parameters:
plainTextPassword - The plain text passwrod.

save

void save()
          throws AccessControlException
Save the user

Throws:
AccessControlException - if the save failed

delete

void delete()
            throws AccessControlException
Delete a user

Throws:
AccessControlException - if the delete failed

authenticate

boolean authenticate(java.lang.String password)
Authenticate a user. This is done by encrypting the given password and comparing this to the encryptedPassword.

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.