public class TigaseSPAuth extends TigaseCustomAuth implements RepositoryVersionAware
RepositoryVersionAware.SchemaVersion
AuthRepository.AccountStatus, AuthRepository.DefaultCredentials, AuthRepository.SingleCredential
Repository.Meta, Repository.SchemaId
DEF_ACCOUNTSTATUS_KEY, DEF_ACCOUNTSTATUS_QUERY, DEF_ADDUSER_KEY, DEF_ADDUSER_QUERY, DEF_CONNVALID_KEY, DEF_DELUSER_KEY, DEF_DELUSER_QUERY, DEF_DISABLEACCOUNT_KEY, DEF_ENABLEACCOUNT_KEY, 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_UPDATEACCOUNTSTATUS_KEY, DEF_UPDATEACCOUNTSTATUS_QUERY, DEF_UPDATELOGINTIME_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
Constructor and Description |
---|
TigaseSPAuth() |
Modifier and Type | Method and Description |
---|---|
void |
addUser(BareJID user,
String password) |
boolean |
otherAuth(Map<String,Object> props) |
void |
updatePassword(BareJID user,
String password) |
getAccountStatus, getCredentialIds, getCredentials, getParamWithDef, getResourceUri, getUsersCount, getUsersCount, initRepository, isMechanismSupported, loggedIn, logout, queryAuth, removeCredential, removeUser, setAccountStatus, setDataSource, updateCredential
getCredentialsDecoder, getCredentialsEncoder, getPassword, setCredentialsCodecs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVersion, updateSchema
getUsernames, isUserDisabled, setUserDisabled
public void addUser(BareJID user, String password) throws UserExistsException, TigaseDBException
addUser
in interface AuthRepository
addUser
in class TigaseCustomAuth
UserExistsException
TigaseDBException
public boolean otherAuth(Map<String,Object> props) throws UserNotFoundException, TigaseDBException, AuthorizationException
otherAuth
in interface AuthRepository
otherAuth
in class TigaseCustomAuth
UserNotFoundException
TigaseDBException
AuthorizationException
public void updatePassword(BareJID user, String password) throws UserNotFoundException, TigaseDBException
updatePassword
in interface AuthRepository
updatePassword
in class TigaseCustomAuth
UserNotFoundException
TigaseDBException
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.