tigase.db
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 AuthRepository
user
- password
- TigaseDBException
UserExistsException
@Deprecated public boolean digestAuth(tigase.xmpp.BareJID user, String digest, String id, String alg) throws UserNotFoundException, TigaseDBException, AuthorizationException
digestAuth
in interface AuthRepository
user
- digest
- id
- alg
- AuthorizationException
TigaseDBException
UserNotFoundException
public AuthRepository getRepo(String domain)
domain
- public String getResourceUri()
getResourceUri
in interface AuthRepository
public long getUsersCount()
getUsersCount
in interface AuthRepository
public long getUsersCount(String domain)
getUsersCount
in interface AuthRepository
domain
- public void initRepository(String resource_uri, Map<String,String> params) throws DBInitException
initRepository
in interface AuthRepository
resource_uri
- params
- DBInitException
public void logout(tigase.xmpp.BareJID user) throws UserNotFoundException, TigaseDBException
logout
in interface AuthRepository
user
- TigaseDBException
UserNotFoundException
public boolean otherAuth(Map<String,Object> authProps) throws UserNotFoundException, TigaseDBException, AuthorizationException
otherAuth
in interface AuthRepository
authProps
- AuthorizationException
TigaseDBException
UserNotFoundException
@Deprecated public boolean plainAuth(tigase.xmpp.BareJID user, String password) throws UserNotFoundException, TigaseDBException, AuthorizationException
plainAuth
in interface AuthRepository
user
- password
- AuthorizationException
TigaseDBException
UserNotFoundException
public void queryAuth(Map<String,Object> authProps)
queryAuth
in interface AuthRepository
authProps
- public AuthRepository removeRepo(String domain)
domain
- public void removeUser(tigase.xmpp.BareJID user) throws UserNotFoundException, TigaseDBException
removeUser
in interface AuthRepository
user
- TigaseDBException
UserNotFoundException
public void setDefault(AuthRepository repo)
repo
- public void updatePassword(tigase.xmpp.BareJID user, String password) throws UserNotFoundException, TigaseDBException
updatePassword
in interface AuthRepository
user
- password
- TigaseDBException
UserNotFoundException
Copyright © 2013 Tigase. All rights reserved.