|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.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.ldap.LDAPUser
public class LDAPUser
LDAP user.
| Field Summary | |
|---|---|
static java.lang.String |
LDAP_ID
|
| Fields inherited from class org.apache.lenya.ac.file.FileUser |
|---|
EMAIL, GROUP, GROUPS, ID, PASSWORD, PASSWORD_ATTRIBUTE |
| Constructor Summary | |
|---|---|
LDAPUser()
Creates a new LDAPUser object. |
|
LDAPUser(java.io.File configurationDirectory)
Creates a new LDAPUser object. |
|
LDAPUser(java.io.File configurationDirectory,
java.lang.String id,
java.lang.String email,
java.lang.String ldapId)
Create an LDAPUser |
|
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String password)
Authenticate a user against the directory. |
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
Create a new LDAPUser from a configuration |
protected org.apache.avalon.framework.configuration.Configuration |
createConfiguration()
Create a configuration from the current user details. |
boolean |
existsUser(java.lang.String ldapId)
Checks if a user exists. |
java.lang.String |
getLdapId()
Get the ldap id |
java.lang.String |
getName()
Returns the name of this object. |
protected void |
initialize()
Initializes this user. |
protected void |
setEncryptedPassword(java.lang.String encryptedPassword)
The LDAPUser doesn't store any passwords as they are handled by LDAP |
void |
setLdapId(java.lang.String string)
Set the ldap id |
void |
setName(java.lang.String string)
LDAP Users fetch their name information from the LDAP server, so we don't store it locally. |
void |
setPassword(java.lang.String plainTextPassword)
The LDAPUser doesn't store any passwords as they are handled by LDAP |
| Methods inherited from class org.apache.lenya.ac.file.FileUser |
|---|
delete, getConfigurationDirectory, getFile, save, setConfigurationDirectory |
| Methods inherited from class org.apache.lenya.ac.impl.AbstractUser |
|---|
getEmail, getEncryptedPassword, getFullName, setEmail, setFullName |
| 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, hashCode, isValidId, setDescription, setId, 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, setDescription |
| Methods inherited from interface org.apache.lenya.ac.Groupable |
|---|
addedToGroup, getGroups, removedFromGroup, removeFromAllGroups |
| Field Detail |
|---|
public static final java.lang.String LDAP_ID
| Constructor Detail |
|---|
public LDAPUser()
public LDAPUser(java.io.File configurationDirectory)
configurationDirectory - The configuration directory.
public LDAPUser(java.io.File configurationDirectory,
java.lang.String id,
java.lang.String email,
java.lang.String ldapId)
throws org.apache.avalon.framework.configuration.ConfigurationException
configurationDirectory - where the user will be attached toid - user id of LDAPUseremail - of LDAPUserldapId - of LDAPUser
org.apache.avalon.framework.configuration.ConfigurationException - if the properties could not be read| Method Detail |
|---|
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface Itemconfigure in class FileUserconfig - the Configuration specifying the user details
org.apache.avalon.framework.configuration.ConfigurationException - if the user could not be instantiated
public boolean existsUser(java.lang.String ldapId)
throws AccessControlException
ldapId - The LDAP id.
AccessControlException - when an unexpected error occurs.protected void initialize()
protected org.apache.avalon.framework.configuration.Configuration createConfiguration()
FileUser
createConfiguration in class FileUserConfigurationFileUser.createConfiguration()public java.lang.String getLdapId()
public void setLdapId(java.lang.String string)
string - the new ldap idpublic boolean authenticate(java.lang.String password)
authenticate in interface Userauthenticate in class AbstractUserpassword - to authenticate with
User.authenticate(java.lang.String)public java.lang.String getName()
AbstractItem
getName in interface ItemgetName in class AbstractItemString.Item.getName()public void setName(java.lang.String string)
setName in interface ItemsetName in class AbstractItemstring - is ignoredpublic void setPassword(java.lang.String plainTextPassword)
setPassword in interface UsersetPassword in class AbstractUserplainTextPassword - is ignoredprotected void setEncryptedPassword(java.lang.String encryptedPassword)
setEncryptedPassword in class AbstractUserencryptedPassword - is ignored
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||