|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.authentication.UserManager
org.objectledge.authentication.DummyUserManager
public class DummyUserManager
The dummy user manager implementation.
| Field Summary |
|---|
| Fields inherited from class org.objectledge.authentication.UserManager |
|---|
loginVerifier, namingPolicy, passwordDigester, passwordGenerator |
| Constructor Summary | |
|---|---|
DummyUserManager()
Creates an instance of the user manager. |
|
| Method Summary | |
|---|---|
void |
changeUserPassword(Principal account,
String password)
Changes user password. |
boolean |
checkUserPassword(Principal account,
String password)
Checks user supplied password. |
Principal |
createAccount(String login,
String dn,
String password)
Creates a new user account. |
Principal |
getAnonymousAccount()
Returns the anonymous account. |
DirContext |
getPersonalData(Principal account)
Returns the personal data of the accoun't owner. |
Principal |
getSuperuserAccount()
Returns the superuser account. |
Principal |
getUserByLogin(String login)
Lookup user by login name. |
Principal |
getUserByName(String dn)
Lookup user by distinguised name. |
Principal[] |
lookupAccounts(String query)
Looks up user accounts according to personal data attributes. |
Principal[] |
lookupAccounts(String attribute,
String value)
Looks up user accounts according to personal data attributes. |
void |
removeAccount(Principal account)
Removes an user account. |
boolean |
userExists(String dn)
Check if user exists. |
| Methods inherited from class org.objectledge.authentication.UserManager |
|---|
checkLogin, createDN, createRandomPassword, getLogin, getLogin, validateLogin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyUserManager()
| Method Detail |
|---|
public boolean userExists(String dn)
userExists in class UserManagerdn - the name of the user.
true if user exists in system.
public Principal createAccount(String login,
String dn,
String password)
throws AuthenticationException
createAccount in class UserManagerlogin - login name of the user.dn - distinguished name of the user.password - initial password of the user.
AuthenticationException - if the account could no be created.
public void removeAccount(Principal account)
throws AuthenticationException
removeAccount in class UserManageraccount - the account.
AuthenticationException - if the account could no be removed.
public Principal getUserByName(String dn)
throws AuthenticationException
getUserByName in class UserManagerdn - the users's distinguished name.
AuthenticationException - if there is a problem performing the operation.
public Principal getUserByLogin(String login)
throws AuthenticationException
getUserByLogin in class UserManagerlogin - the name used for authentication.
AuthenticationException - if there is a problem performing the operation.
public Principal getAnonymousAccount()
throws AuthenticationException
getAnonymousAccount in class UserManagerAuthenticationException - if there is a problem performing the operation.
public Principal getSuperuserAccount()
throws AuthenticationException
getSuperuserAccount in class UserManagerAuthenticationException - if there is a problem performing the operation.
public void changeUserPassword(Principal account,
String password)
throws AuthenticationException
changeUserPassword in class UserManageraccount - the account.password - the new password for the account.
AuthenticationException - if the password could not be changed.
public boolean checkUserPassword(Principal account,
String password)
throws AuthenticationException
checkUserPassword in class UserManageraccount - the account.password - the password to be checked.
true if the supplied password is correct.
AuthenticationException - if there is a problem performing the operation.
public DirContext getPersonalData(Principal account)
throws AuthenticationException
getPersonalData in class UserManageraccount - the account.
AuthenticationException - if there is a problem performing the operation.
public Principal[] lookupAccounts(String attribute,
String value)
throws NamingException
lookupAccounts in class UserManagerattribute - the personal data attribute name.value - the personal data attribute value.
NamingException - if the opertion could not be performed.
public Principal[] lookupAccounts(String query)
throws NamingException
lookupAccounts in class UserManagerquery - the JNDI query in format supported by the underlying directory.
NamingException - if the opertion could not be performed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||