|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.garret.consus.StdAuthenticator
Basic implementation of the authentication interface based on the user login name and password.
Constructor Summary | |
---|---|
StdAuthenticator()
|
Method Summary | |
---|---|
boolean |
add(ConsusConnection conxn,
java.util.Properties userInfo)
Add a new user. |
boolean |
authenticate(ConsusConnection conxn,
java.util.Properties userInfo)
ConsusAuthenticator constructor. |
boolean |
change(ConsusConnection conxn,
java.util.Properties userInfo)
Change user properties. |
boolean |
remove(ConsusConnection conxn,
java.util.Properties userInfo)
Remove a user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StdAuthenticator()
Method Detail |
---|
public boolean add(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
add
in interface ConsusAuthenticator
conxn
- connection with the databaseuserInfo
- user properties
true
if the user is successfully added, false
otherwise.
java.sql.SQLException
public boolean authenticate(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
authenticate
in interface ConsusAuthenticator
conxn
- dastabase conenctionuserInfo
- user properties (shoud contain at least "user" and "password" properties)
true
if client is authenticated (connection is accepted)
or false
if connection is refused.
java.sql.SQLException
public boolean change(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
change
in interface ConsusAuthenticator
conxn
- connection with the databaseuserInfo
- users new properties (user name and other properties needed to identify
user should not be changed.
java.sql.SQLException
public boolean remove(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
remove
in interface ConsusAuthenticator
conxn
- connection with the databaseuserInfo
- user properties
true
if the information about the user is removed,
false
if there is no such user.
java.sql.SQLException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |