Package tigase.db.jdbc
Class TigaseSPAuth
java.lang.Object
tigase.db.AbstractAuthRepositoryWithCredentials
tigase.db.jdbc.TigaseCustomAuth
tigase.db.jdbc.TigaseSPAuth
- All Implemented Interfaces:
AuthRepository,DataSourceAware<DataRepository>,Repository,RepositoryVersionAware
Tigase Salted Password Auth.
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.db.AuthRepository
AuthRepository.AccountStatus, AuthRepository.DefaultCredentials, AuthRepository.SingleCredentialNested classes/interfaces inherited from interface tigase.db.Repository
Repository.Meta, Repository.SchemaIdNested classes/interfaces inherited from interface tigase.db.util.RepositoryVersionAware
RepositoryVersionAware.SchemaVersion -
Field Summary
Fields inherited from class tigase.db.jdbc.TigaseCustomAuth
DEF_ACCOUNTSTATUS_KEY, DEF_ACCOUNTSTATUS_QUERY, DEF_ACTIVE_USERS_COUNT_KEY, DEF_ACTIVE_USERS_COUNT_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_USERLOGIN_KEY, DEF_USERLOGOUT_KEY, DEF_USERS_COUNT_KEY, DEF_USERS_COUNT_QUERY, DEF_USERS_DOMAIN_COUNT_KEY, DEF_USERS_DOMAIN_COUNT_QUERY, NO_QUERY, SP_STARTS_WITHFields inherited from interface tigase.db.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 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class tigase.db.jdbc.TigaseCustomAuth
getAccountStatus, getActiveUsersCountIn, getCredentialIds, getCredentials, getParamWithDef, getResourceUri, getUsersCount, getUsersCount, initRepository, isMechanismSupported, loggedIn, logout, queryAuth, removeCredential, removeUser, setAccountStatus, setDataSource, updateCredential, updateCredentialMethods inherited from class tigase.db.AbstractAuthRepositoryWithCredentials
getCredentialsDecoder, getCredentialsEncoder, getPassword, setCredentialsCodecsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.db.AuthRepository
getUsernames, isUserDisabled, setUserDisabledMethods inherited from interface tigase.db.util.RepositoryVersionAware
getVersion, updateSchema
-
Constructor Details
-
TigaseSPAuth
public TigaseSPAuth()
-
-
Method Details
-
addUser
- Specified by:
addUserin interfaceAuthRepository- Overrides:
addUserin classTigaseCustomAuth- Throws:
UserExistsExceptionTigaseDBException
-
otherAuth
public boolean otherAuth(Map<String, Object> props) throws UserNotFoundException, TigaseDBException, AuthorizationException- Specified by:
otherAuthin interfaceAuthRepository- Overrides:
otherAuthin classTigaseCustomAuth- Throws:
UserNotFoundExceptionTigaseDBExceptionAuthorizationException
-
updatePassword
public void updatePassword(BareJID user, String password) throws UserNotFoundException, TigaseDBException - Specified by:
updatePasswordin interfaceAuthRepository- Overrides:
updatePasswordin classTigaseCustomAuth- Throws:
UserNotFoundExceptionTigaseDBException
-