public class TigaseSPAuth extends TigaseCustomAuth
Repository.Meta
DEF_ADDUSER_KEY, DEF_ADDUSER_QUERY, DEF_CONNVALID_KEY, DEF_DELUSER_KEY, DEF_DELUSER_QUERY, DEF_DISABLEACCOUNT_KEY, DEF_DISABLEACCOUNT_QUERY, DEF_ENABLEACCOUNT_KEY, DEF_ENABLEACCOUNT_QUERY, DEF_GETPASSWORD_KEY, DEF_GETPASSWORD_QUERY, DEF_INITDB_KEY, DEF_INITDB_QUERY, DEF_LISTDISABLEDACCOUNTS_KEY, DEF_LISTDISABLEDACCOUNTS_QUERY, DEF_NONSASL_MECHS, DEF_NONSASL_MECHS_KEY, DEF_SASL_MECHS, DEF_SASL_MECHS_KEY, DEF_UPDATEPASSWORD_KEY, DEF_UPDATEPASSWORD_QUERY, DEF_USERLOGIN_KEY, DEF_USERLOGIN_QUERY, DEF_USERLOGOUT_KEY, DEF_USERLOGOUT_QUERY, DEF_USERS_COUNT_KEY, DEF_USERS_COUNT_QUERY, DEF_USERS_DOMAIN_COUNT_KEY, DEF_USERS_DOMAIN_COUNT_QUERY, NO_QUERY, SP_STARTS_WITH
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 |
---|
TigaseSPAuth() |
Modifier and Type | Method and Description |
---|---|
void |
addUser(BareJID user,
String password)
Describe
addUser method here. |
boolean |
otherAuth(Map<String,Object> props)
Describe
otherAuth method here. |
void |
updatePassword(BareJID user,
String password)
Describe
updatePassword method here. |
digestAuth, getParamWithDef, getPassword, getResourceUri, getUsersCount, getUsersCount, initRepository, isUserDisabled, logout, plainAuth, queryAuth, removeUser, setUserDisabled
public void addUser(BareJID user, String password) throws UserExistsException, TigaseDBException
AuthRepository
addUser
method here.addUser
in interface AuthRepository
addUser
in class TigaseCustomAuth
user
- a BareJID
valuepassword
- a String
valueUserExistsException
- if an error occursTigaseDBException
- if an error occurspublic boolean otherAuth(Map<String,Object> props) throws UserNotFoundException, TigaseDBException, AuthorizationException
AuthRepository
otherAuth
method here.otherAuth
in interface AuthRepository
otherAuth
in class TigaseCustomAuth
props
- a Map
valueboolean
valueUserNotFoundException
- if an error occursTigaseDBException
- if an error occursAuthorizationException
- if an error occurspublic void updatePassword(BareJID user, String password) throws UserNotFoundException, TigaseDBException
AuthRepository
updatePassword
method here.updatePassword
in interface AuthRepository
updatePassword
in class TigaseCustomAuth
user
- a BareJID
valuepassword
- a String
valueUserNotFoundException
TigaseDBException
- if an error occursCopyright © 2018 "Tigase, Inc.". All rights reserved.