public class AuthRepositoryMDImpl 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 |
|---|
AuthRepositoryMDImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRepo(String domain,
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.
|
AuthRepository |
getRepo(String domain)
Method description
|
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
|
AuthRepository |
removeRepo(String domain)
Method description
|
void |
removeUser(tigase.xmpp.BareJID user)
Method description
|
void |
setDefault(AuthRepository repo)
Method description
|
void |
updatePassword(tigase.xmpp.BareJID user,
String password)
Method description
|
public void addRepo(String domain, AuthRepository repo)
domain - 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 - boolean value true on successful
authentication, false on authentication failure.AuthorizationExceptionTigaseDBExceptionUserNotFoundExceptionpublic AuthRepository getRepo(String domain)
domain - public String getResourceUri()
getResourceUri in interface AuthRepositoryString value of database connection string.public long getUsersCount()
getUsersCount in interface AuthRepositorylong number of registered users in the repository.public long getUsersCount(String domain)
getUsersCount in interface AuthRepositorydomain - long number of registered users in the repository.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 - boolean valueAuthorizationExceptionTigaseDBExceptionUserNotFoundException@Deprecated public boolean plainAuth(tigase.xmpp.BareJID user, String password) throws UserNotFoundException, TigaseDBException, AuthorizationException
plainAuth in interface AuthRepositoryuser - password - boolean value true on successful
authentication, false on authentication failure.AuthorizationExceptionTigaseDBExceptionUserNotFoundExceptionpublic void queryAuth(Map<String,Object> authProps)
queryAuth in interface AuthRepositoryauthProps - public AuthRepository removeRepo(String domain)
domain - public void removeUser(tigase.xmpp.BareJID user)
throws UserNotFoundException,
TigaseDBException
removeUser in interface AuthRepositoryuser - TigaseDBExceptionUserNotFoundExceptionpublic void setDefault(AuthRepository repo)
repo - public void updatePassword(tigase.xmpp.BareJID user,
String password)
throws UserNotFoundException,
TigaseDBException
updatePassword in interface AuthRepositoryuser - password - TigaseDBExceptionUserNotFoundExceptionCopyright © 2014 "Tigase, Inc.". All rights reserved.