public class AuthRepositoryMDImpl extends Object implements AuthRepository
Repository.Meta
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.
|
String |
getPassword(tigase.xmpp.BareJID user) |
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
- boolean
value true
on successful
authentication, false
on authentication failure.AuthorizationException
TigaseDBException
UserNotFoundException
public AuthRepository getRepo(String domain)
domain
- public String getResourceUri()
getResourceUri
in interface AuthRepository
String
value of database connection string.public long getUsersCount()
getUsersCount
in interface AuthRepository
long
number of registered users in the repository.public long getUsersCount(String domain)
getUsersCount
in interface AuthRepository
domain
- long
number of registered users in the repository.public void initRepository(String resource_uri, Map<String,String> params) throws DBInitException
initRepository
in interface Repository
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
- boolean
valueAuthorizationException
TigaseDBException
UserNotFoundException
@Deprecated public boolean plainAuth(tigase.xmpp.BareJID user, String password) throws UserNotFoundException, TigaseDBException, AuthorizationException
plainAuth
in interface AuthRepository
user
- password
- boolean
value true
on successful
authentication, false
on authentication failure.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
public String getPassword(tigase.xmpp.BareJID user) throws UserNotFoundException, TigaseDBException
getPassword
in interface AuthRepository
UserNotFoundException
TigaseDBException
Copyright © 2014 "Tigase, Inc.". All rights reserved.