|
||||||||||
| 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 java.lang.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(java.lang.String user,
java.lang.String password)
Describe addUser method here. |
boolean |
digestAuth(java.lang.String user,
java.lang.String digest,
java.lang.String id,
java.lang.String alg)
Describe digestAuth method here. |
java.lang.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(java.lang.String domain)
This method is only used by the server statistics component to report number of registered users for given domain. |
void |
initRepository(java.lang.String connection_str,
java.util.Map<java.lang.String,java.lang.String> params)
Describe initRepository method here. |
void |
logout(java.lang.String user)
Describe logout method here. |
boolean |
otherAuth(java.util.Map<java.lang.String,java.lang.Object> props)
Describe otherAuth method here. |
boolean |
plainAuth(java.lang.String user,
java.lang.String password)
Describe plainAuth method here. |
void |
queryAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)
Describe queryAuth method here. |
void |
removeUser(java.lang.String user)
Describe removeUser method here. |
void |
updatePassword(java.lang.String user,
java.lang.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 java.lang.String DEF_USERS_TBL
| Constructor Detail |
|---|
public DrupalAuth()
| Method Detail |
|---|
public void queryAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)
queryAuth method here.
queryAuth in interface UserAuthRepositoryauthProps - a Map value
public void initRepository(java.lang.String connection_str,
java.util.Map<java.lang.String,java.lang.String> params)
throws DBInitException
initRepository method here.
initRepository in interface UserAuthRepositoryconnection_str - a String value
DBInitException - if an error occurspublic java.lang.String getResourceUri()
UserAuthRepositorygetResourceUri method returns database connection string.
getResourceUri in interface UserAuthRepositoryString value of database connection string.
public boolean plainAuth(java.lang.String user,
java.lang.String password)
throws UserNotFoundException,
TigaseDBException,
AuthorizationException
plainAuth method here.
plainAuth in interface UserAuthRepositoryuser - 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(java.lang.String user,
java.lang.String digest,
java.lang.String id,
java.lang.String alg)
throws UserNotFoundException,
TigaseDBException,
AuthorizationException
digestAuth method here.
digestAuth in interface UserAuthRepositoryuser - 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 occurs
public boolean otherAuth(java.util.Map<java.lang.String,java.lang.Object> props)
throws UserNotFoundException,
TigaseDBException,
AuthorizationException
otherAuth method here.
otherAuth in interface UserAuthRepositoryprops - a Map value
boolean value
UserNotFoundException - if an error occurs
TigaseDBException - if an error occurs
AuthorizationException - if an error occurs
public void logout(java.lang.String user)
throws UserNotFoundException,
TigaseDBException
UserAuthRepositorylogout method here.
logout in interface UserAuthRepositoryuser - a String value
UserNotFoundException - if an error occurs
TigaseDBException - if an error occurs
public void addUser(java.lang.String user,
java.lang.String password)
throws UserExistsException,
TigaseDBException
addUser method here.
addUser in interface UserAuthRepositoryuser - a String valuepassword - a String value
UserExistsException - if an error occurs
TigaseDBException - if an error occurs
public void updatePassword(java.lang.String user,
java.lang.String password)
throws UserNotFoundException,
TigaseDBException
updatePassword method here.
updatePassword in interface UserAuthRepositoryuser - a String valuepassword - a String value
UserExistsException - if an error occurs
TigaseDBException - if an error occurs
UserNotFoundException
public void removeUser(java.lang.String user)
throws UserNotFoundException,
TigaseDBException
removeUser method here.
removeUser in interface UserAuthRepositoryuser - a String value
UserNotFoundException - if an error occurs
TigaseDBException - if an error occurspublic long getUsersCount()
UserAuthRepository
getUsersCount in interface UserAuthRepositorylong number of registered users in the repository.public long getUsersCount(java.lang.String domain)
UserAuthRepository
getUsersCount in interface UserAuthRepositorylong number of registered users in the repository.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||