|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttigase.db.jdbc.DrupalAuth
public class DrupalAuth
Describe class DrupalAuth here. Created: Sat Nov 11 22:22:04 2006
Field Summary | |
---|---|
static String |
DEF_USERS_TBL
|
Fields inherited from interface tigase.db.UserAuthRepository |
---|
DATA_KEY, MACHANISM_KEY, PROTOCOL_KEY, PROTOCOL_VAL_NONSASL, PROTOCOL_VAL_SASL, REALM_KEY, RESULT_KEY, SERVER_NAME_KEY, USER_ID_KEY |
Constructor Summary | |
---|---|
DrupalAuth()
|
Method Summary | |
---|---|
void |
addUser(String user,
String password)
Describe addUser method here. |
boolean |
digestAuth(String user,
String digest,
String id,
String alg)
Describe digestAuth method here. |
String |
getResourceUri()
getResourceUri method returns database connection string. |
long |
getUsersCount()
This method is only used by the server statistics component to report number of registered users. |
long |
getUsersCount(String domain)
This method is only used by the server statistics component to report number of registered users for given domain. |
void |
initRepository(String connection_str,
Map<String,String> params)
Describe initRepository method here. |
void |
logout(String user)
Describe logout method here. |
boolean |
otherAuth(Map<String,Object> props)
Describe otherAuth method here. |
boolean |
plainAuth(String user,
String password)
Describe plainAuth method here. |
void |
queryAuth(Map<String,Object> authProps)
Describe queryAuth method here. |
void |
removeUser(String user)
Describe removeUser method here. |
void |
updatePassword(String user,
String password)
Describe updatePassword method here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEF_USERS_TBL
Constructor Detail |
---|
public DrupalAuth()
Method Detail |
---|
public void queryAuth(Map<String,Object> authProps)
queryAuth
method here.
queryAuth
in interface UserAuthRepository
authProps
- a Map
valuepublic void initRepository(String connection_str, Map<String,String> params) throws DBInitException
initRepository
method here.
initRepository
in interface UserAuthRepository
connection_str
- a String
value
DBInitException
- if an error occurspublic String getResourceUri()
UserAuthRepository
getResourceUri
method returns database connection string.
getResourceUri
in interface UserAuthRepository
String
value of database connection string.public boolean plainAuth(String user, String password) throws UserNotFoundException, TigaseDBException, AuthorizationException
plainAuth
method here.
plainAuth
in interface UserAuthRepository
user
- a String
valuepassword
- a String
value
boolean
value
UserNotFoundException
- if an error occurs
TigaseDBException
- if an error occurs
AuthorizationException
- if an error occurs during authentication
process.public boolean digestAuth(String user, String digest, String id, String alg) throws UserNotFoundException, TigaseDBException, AuthorizationException
digestAuth
method here.
digestAuth
in interface UserAuthRepository
user
- a String
valuedigest
- a String
valueid
- a String
valuealg
- a String
value
boolean
value
UserNotFoundException
- if an error occurs
TigaseDBException
- if an error occurs
AuthorizationException
- if an error occurspublic boolean otherAuth(Map<String,Object> props) throws UserNotFoundException, TigaseDBException, AuthorizationException
otherAuth
method here.
otherAuth
in interface UserAuthRepository
props
- a Map
value
boolean
value
UserNotFoundException
- if an error occurs
TigaseDBException
- if an error occurs
AuthorizationException
- if an error occurspublic void logout(String user) throws UserNotFoundException, TigaseDBException
UserAuthRepository
logout
method here.
logout
in interface UserAuthRepository
user
- a String
value
UserNotFoundException
- if an error occurs
TigaseDBException
- if an error occurspublic void addUser(String user, String password) throws UserExistsException, TigaseDBException
addUser
method here.
addUser
in interface UserAuthRepository
user
- a String
valuepassword
- a String
value
UserExistsException
- if an error occurs
TigaseDBException
- if an error occurspublic void updatePassword(String user, String password) throws UserNotFoundException, TigaseDBException
updatePassword
method here.
updatePassword
in interface UserAuthRepository
user
- a String
valuepassword
- a String
value
UserExistsException
- if an error occurs
TigaseDBException
- if an error occurs
UserNotFoundException
public void removeUser(String user) throws UserNotFoundException, TigaseDBException
removeUser
method here.
removeUser
in interface UserAuthRepository
user
- a String
value
UserNotFoundException
- if an error occurs
TigaseDBException
- if an error occurspublic long getUsersCount()
UserAuthRepository
getUsersCount
in interface UserAuthRepository
long
number of registered users in the repository.public long getUsersCount(String domain)
UserAuthRepository
getUsersCount
in interface UserAuthRepository
long
number of registered users in the repository.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |