|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.db.UserAuthRepositoryImpl
public class UserAuthRepositoryImpl
Describe class UserAuthRepositoryImpl here. Created: Sat Nov 11 21:46:50 2006
| Field Summary |
|---|
| 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 | |
|---|---|
UserAuthRepositoryImpl(UserRepository repo)
Creates a new UserAuthRepositoryImpl instance. |
|
| 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 string,
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 |
| Constructor Detail |
|---|
public UserAuthRepositoryImpl(UserRepository repo)
UserAuthRepositoryImpl instance.
| Method Detail |
|---|
public java.lang.String getResourceUri()
UserAuthRepositorygetResourceUri method returns database connection string.
getResourceUri in interface UserAuthRepositoryString value of database connection string.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 string,
java.util.Map<java.lang.String,java.lang.String> params)
throws DBInitException
initRepository method here.
initRepository in interface UserAuthRepositorystring - a String value
DBInitException - if an error occurs
public boolean plainAuth(java.lang.String user,
java.lang.String password)
throws UserNotFoundException,
TigaseDBException
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
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 occurspublic void logout(java.lang.String user)
UserAuthRepositorylogout method here.
logout in interface UserAuthRepositoryuser - a String value
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 TigaseDBException
updatePassword method here.
updatePassword in interface UserAuthRepositoryuser - a String valuepassword - a String value
UserExistsException - if an error occurs
TigaseDBException - if an error occurs
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 | |||||||||