Package tigase.db.jdbc
Class TigaseAuth
- java.lang.Object
-
- tigase.db.jdbc.TigaseAuth
-
- All Implemented Interfaces:
AuthRepository,DataSourceAware<DataRepository>,Repository,RepositoryVersionAware
@Deprecated public class TigaseAuth extends java.lang.Object implements AuthRepository, DataSourceAware<DataRepository>, RepositoryVersionAware
Deprecated.Describe class TigaseAuth here.
Created: Sat Nov 11 22:22:04 2006- Author:
- Artur Hefczyc
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tigase.db.AuthRepository
AuthRepository.AccountStatus, AuthRepository.DefaultCredentials, AuthRepository.SingleCredential
-
Nested classes/interfaces inherited from interface tigase.db.Repository
Repository.Meta, Repository.SchemaId
-
Nested classes/interfaces inherited from interface tigase.db.util.RepositoryVersionAware
RepositoryVersionAware.SchemaVersion
-
-
Field Summary
-
Fields 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 Constructor Description TigaseAuth()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddUser(BareJID user, java.lang.String password)Deprecated.AuthRepository.AccountStatusgetAccountStatus(BareJID user)Deprecated.java.lang.StringgetPassword(BareJID user)Deprecated.java.lang.StringgetResourceUri()Deprecated.getResourceUrimethod returns database connection string.longgetUsersCount()Deprecated.getUsersCountmethod is thread safe.longgetUsersCount(java.lang.String domain)Deprecated.This method is only used by the server statistics component to report number of registered users for given domain.voidinitRepository(java.lang.String connection_str, java.util.Map<java.lang.String,java.lang.String> params)Deprecated.booleanisUserDisabled(BareJID user)Deprecated.voidloggedIn(BareJID user)Deprecated.Do some actions on repository, when user logs in.voidlogout(BareJID user)Deprecated.booleanotherAuth(java.util.Map<java.lang.String,java.lang.Object> props)Deprecated.voidqueryAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)Deprecated.queryAuthreturns mechanisms available for authentication.voidremoveUser(BareJID user)Deprecated.voidsetAccountStatus(BareJID user, AuthRepository.AccountStatus status)Deprecated.voidsetDataSource(DataRepository dataSource)Deprecated.Method called to provide class with instance of a data source.voidsetUserDisabled(BareJID user, java.lang.Boolean value)Deprecated.voidupdatePassword(BareJID user, java.lang.String password)Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.db.AuthRepository
getCredentialIds, getCredentials, getUsernames, isMechanismSupported, removeCredential, setCredentialsCodecs, updateCredential
-
Methods inherited from interface tigase.db.util.RepositoryVersionAware
getVersion, updateSchema
-
-
-
-
Method Detail
-
addUser
public void addUser(BareJID user, java.lang.String password) throws UserExistsException, TigaseDBException
Deprecated.- Specified by:
addUserin interfaceAuthRepository- Throws:
UserExistsExceptionTigaseDBException
-
getResourceUri
public java.lang.String getResourceUri()
Deprecated.Description copied from interface:AuthRepositorygetResourceUrimethod returns database connection string.- Specified by:
getResourceUriin interfaceAuthRepository- Returns:
- a
Stringvalue of database connection string.
-
getUsersCount
public long getUsersCount()
Deprecated.getUsersCountmethod is thread safe. It uses local variable for storingStatement.- Specified by:
getUsersCountin interfaceAuthRepository- Returns:
- a
longnumber of user accounts in database.
-
getUsersCount
public long getUsersCount(java.lang.String domain)
Deprecated.Description copied from interface:AuthRepositoryThis method is only used by the server statistics component to report number of registered users for given domain.- Specified by:
getUsersCountin interfaceAuthRepository- Parameters:
domain- for which get the statistics- Returns:
- a
longnumber of registered users in the repository.
-
setDataSource
public void setDataSource(DataRepository dataSource) throws DBInitException
Deprecated.Description copied from interface:DataSourceAwareMethod called to provide class with instance of a data source.- Specified by:
setDataSourcein interfaceDataSourceAware<DataRepository>- Throws:
DBInitException
-
initRepository
@Deprecated public void initRepository(java.lang.String connection_str, java.util.Map<java.lang.String,java.lang.String> params) throws DBInitExceptionDeprecated.Description copied from interface:RepositoryMethod is deprecated and should not be user any more.
The method is called to initialize the data repository. Depending on the implementation all the initialization parameters can be passed either viaresource_uriparameter as the database connection string or viaparamsmap if the required repository parameters are more complex or both.- Specified by:
initRepositoryin interfaceRepository- Parameters:
connection_str- value in most cases representing the database connection string.params- is aMapwith repository properties necessary to initialize and perform all the functions. The initialization parameters are implementation dependent.- Throws:
DBInitException- if there was an error during repository initialization. Some implementations, though, perform so called lazy initialization so even though there is a problem with the underlying repository it may not be signaled through this method call.
-
logout
public void logout(BareJID user) throws UserNotFoundException, TigaseDBException
Deprecated.- Specified by:
logoutin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBException
-
loggedIn
public void loggedIn(BareJID user) throws TigaseDBException
Deprecated.Description copied from interface:AuthRepositoryDo some actions on repository, when user logs in. (for example updatelast_login_time)- Specified by:
loggedInin interfaceAuthRepository- Parameters:
user- JID of logged user.- Throws:
TigaseDBException- if an error occurs
-
otherAuth
public boolean otherAuth(java.util.Map<java.lang.String,java.lang.Object> props) throws UserNotFoundException, TigaseDBException, AuthorizationExceptionDeprecated.- Specified by:
otherAuthin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBExceptionAuthorizationException
-
queryAuth
public void queryAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)
Deprecated.Description copied from interface:AuthRepositoryqueryAuthreturns mechanisms available for authentication.- Specified by:
queryAuthin interfaceAuthRepository- Parameters:
authProps- aMapvalue with parameters for authentication.
-
removeUser
public void removeUser(BareJID user) throws UserNotFoundException, TigaseDBException
Deprecated.- Specified by:
removeUserin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBException
-
updatePassword
public void updatePassword(BareJID user, java.lang.String password) throws UserNotFoundException, TigaseDBException
Deprecated.- Specified by:
updatePasswordin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBException
-
getPassword
public java.lang.String getPassword(BareJID user) throws UserNotFoundException, TigaseDBException
Deprecated.- Specified by:
getPasswordin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBException
-
isUserDisabled
public boolean isUserDisabled(BareJID user) throws UserNotFoundException, TigaseDBException
Deprecated.- Specified by:
isUserDisabledin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBException
-
setUserDisabled
public void setUserDisabled(BareJID user, java.lang.Boolean value) throws UserNotFoundException, TigaseDBException
Deprecated.- Specified by:
setUserDisabledin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBException
-
setAccountStatus
public void setAccountStatus(BareJID user, AuthRepository.AccountStatus status) throws TigaseDBException
Deprecated.- Specified by:
setAccountStatusin interfaceAuthRepository- Throws:
TigaseDBException
-
getAccountStatus
public AuthRepository.AccountStatus getAccountStatus(BareJID user) throws TigaseDBException
Deprecated.- Specified by:
getAccountStatusin interfaceAuthRepository- Throws:
TigaseDBException
-
-