tigase.db
public class AuthRepositoryPool extends Object implements AuthRepository
DATA_KEY, DIGEST_ID_KEY, DIGEST_KEY, MACHANISM_KEY, PASSWORD_KEY, PROTOCOL_KEY, PROTOCOL_VAL_NONSASL, PROTOCOL_VAL_SASL, REALM_KEY, RESULT_KEY, SERVER_NAME_KEY, USER_ID_KEY, USERNAME_KEY| Constructor and Description |
|---|
AuthRepositoryPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRepo(AuthRepository repo)
Method description
|
void |
addUser(tigase.xmpp.BareJID user,
String password)
Method description
|
boolean |
digestAuth(tigase.xmpp.BareJID user,
String digest,
String id,
String alg)
Deprecated.
|
String |
getResourceUri()
Method description
|
long |
getUsersCount()
Method description
|
long |
getUsersCount(String domain)
Method description
|
void |
initRepository(String resource_uri,
Map<String,String> params)
Method description
|
void |
logout(tigase.xmpp.BareJID user)
Method description
|
boolean |
otherAuth(Map<String,Object> authProps)
Method description
|
boolean |
plainAuth(tigase.xmpp.BareJID user,
String password)
Deprecated.
|
void |
queryAuth(Map<String,Object> authProps)
Method description
|
void |
removeUser(tigase.xmpp.BareJID user)
Method description
|
AuthRepository |
takeRepo()
Method description
|
void |
updatePassword(tigase.xmpp.BareJID user,
String password)
Method description
|
public void addRepo(AuthRepository repo)
repo - public void addUser(tigase.xmpp.BareJID user,
String password)
throws UserExistsException,
TigaseDBException
addUser in interface AuthRepositoryuser - password - TigaseDBExceptionUserExistsException@Deprecated public boolean digestAuth(tigase.xmpp.BareJID user, String digest, String id, String alg) throws UserNotFoundException, TigaseDBException, AuthorizationException
digestAuth in interface AuthRepositoryuser - digest - id - alg - AuthorizationExceptionTigaseDBExceptionUserNotFoundExceptionpublic String getResourceUri()
getResourceUri in interface AuthRepositorypublic long getUsersCount()
getUsersCount in interface AuthRepositorypublic long getUsersCount(String domain)
getUsersCount in interface AuthRepositorydomain - public void initRepository(String resource_uri, Map<String,String> params) throws DBInitException
initRepository in interface AuthRepositoryresource_uri - params - DBInitExceptionpublic void logout(tigase.xmpp.BareJID user)
throws UserNotFoundException,
TigaseDBException
logout in interface AuthRepositoryuser - TigaseDBExceptionUserNotFoundExceptionpublic boolean otherAuth(Map<String,Object> authProps) throws UserNotFoundException, TigaseDBException, AuthorizationException
otherAuth in interface AuthRepositoryauthProps - AuthorizationExceptionTigaseDBExceptionUserNotFoundException@Deprecated public boolean plainAuth(tigase.xmpp.BareJID user, String password) throws UserNotFoundException, TigaseDBException, AuthorizationException
plainAuth in interface AuthRepositoryuser - password - AuthorizationExceptionTigaseDBExceptionUserNotFoundExceptionpublic void queryAuth(Map<String,Object> authProps)
queryAuth in interface AuthRepositoryauthProps - public void removeUser(tigase.xmpp.BareJID user)
throws UserNotFoundException,
TigaseDBException
removeUser in interface AuthRepositoryuser - TigaseDBExceptionUserNotFoundExceptionpublic AuthRepository takeRepo()
public void updatePassword(tigase.xmpp.BareJID user,
String password)
throws UserNotFoundException,
TigaseDBException
updatePassword in interface AuthRepositoryuser - password - TigaseDBExceptionUserNotFoundExceptionCopyright © 2013 Tigase. All rights reserved.