|
||||||||||
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(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 string,
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 |
Constructor Detail |
---|
public UserAuthRepositoryImpl(UserRepository repo)
UserAuthRepositoryImpl
instance.
Method Detail |
---|
public String getResourceUri()
UserAuthRepository
getResourceUri
method returns database connection string.
getResourceUri
in interface UserAuthRepository
String
value of database connection string.public void queryAuth(Map<String,Object> authProps)
queryAuth
method here.
queryAuth
in interface UserAuthRepository
authProps
- a Map
valuepublic void initRepository(String string, Map<String,String> params) throws DBInitException
initRepository
method here.
initRepository
in interface UserAuthRepository
string
- a String
value
DBInitException
- if an error occurspublic boolean plainAuth(String user, String password) throws UserNotFoundException, TigaseDBException
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 occurspublic 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)
UserAuthRepository
logout
method here.
logout
in interface UserAuthRepository
user
- a String
valuepublic 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 TigaseDBException
updatePassword
method here.
updatePassword
in interface UserAuthRepository
user
- a String
valuepassword
- a String
value
UserExistsException
- if an error occurs
TigaseDBException
- if an error occurspublic 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 |