|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Authenticator interface
Method Summary | |
---|---|
boolean |
add(ConsusConnection conxn,
java.util.Properties userInfo)
Add a new user. |
boolean |
authenticate(ConsusConnection conxn,
java.util.Properties userInfo)
Performs client authentication. |
boolean |
change(ConsusConnection conxn,
java.util.Properties userInfo)
Change users properties. |
boolean |
remove(ConsusConnection conxn,
java.util.Properties userInfo)
Remove user. |
Method Detail |
---|
boolean add(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
conxn
- connection with the databaseuserInfo
- user properties
true
if user is successfully added, false
otherwise.
java.sql.SQLException
boolean authenticate(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
Properties
structure. Usually it contains "user
" and
"password
" properties. Consus server adds the "host
"
property where it stores the remote Inet address of the connected socket.
This structure is specified while establishing connection with the server by the
Driver.connect(String url, java.util.Properties info)
method.
conxn
- connection with the databaseuserInfo
- user login properties
true
if client is authenticated (connection is accepted)
or false
if connection is refused.
java.sql.SQLException
boolean change(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
conxn
- connection with the databaseuserInfo
- new user properties (specify user name or ID of an existing user)
java.sql.SQLException
boolean remove(ConsusConnection conxn, java.util.Properties userInfo) throws java.sql.SQLException
conxn
- connection with the databaseuserInfo
- user properties
true
if information about 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 |