Package-level declarations

Types

Link copied to clipboard
class AddAuthenticatedUserUseCase(sessionRepository: SessionRepository, serverConfigurationDAO: <Error class: unknown class>, serverConfigMapper: ServerConfigMapper = MapperProvider.serverConfigMapper())

Adds an authenticated user to the session In case of the new session having a different server configurations, the new session should not be added

Link copied to clipboard
Link copied to clipboard
class AuthenticationScope(userAgent: String, serverConfig: ServerConfig, proxyCredentials: ProxyCredentials?, globalDatabase: <Error class: unknown class>, kaliumConfigs: KaliumConfigs)
Link copied to clipboard
class AuthenticationScopeProvider(userAgent: String)
Link copied to clipboard

Clears the user data from the local storage, except for the client id

Link copied to clipboard
Link copied to clipboard
class DomainLookupUseCase(customServerConfigRepository: CustomServerConfigRepository, ssoLoginRepository: SSOLoginRepository)

Use case for domain lookup. will return the server config for the domain. if the domain is not found then it will return a failure.

Link copied to clipboard
interface LoginUseCase
Link copied to clipboard
internal class LoginUseCaseImpl(loginRepository: LoginRepository, validateEmailUseCase: ValidateEmailUseCase, validateUserHandleUseCase: ValidateUserHandleUseCase, serverConfig: ServerConfig, proxyCredentials: ProxyCredentials?, secondFactorVerificationRepository: SecondFactorVerificationRepository) : LoginUseCase
Link copied to clipboard
interface LogoutCallback
Link copied to clipboard

This manager is used to register callbacks that will be called when a user session is being logged out. The app may have some actions to perform outside the kalium as well when a user is logged out, like clearing the data store, etc. When logout action is triggered by the user, then the app can execute these actions right after the LogoutUseCase result, but when the logout is triggered automatically by some event (i.e. session expired, device removed, account removed), then the app will not be able to execute these actions without registering to this manager.

Link copied to clipboard
interface LogoutUseCase

Logs out the user from the current session

Link copied to clipboard
internal class LogoutUseCaseImpl constructor(logoutRepository: LogoutRepository, sessionRepository: SessionRepository, clientRepository: ClientRepository, userConfigRepository: UserConfigRepository, userId: <Error class: unknown class>, deregisterTokenUseCase: DeregisterTokenUseCase, clearClientDataUseCase: ClearClientDataUseCase, clearUserDataUseCase: ClearUserDataUseCase, userSessionScopeProvider: UserSessionScopeProvider, pushTokenRepository: PushTokenRepository, globalCoroutineScope: <Error class: unknown class>, userSessionWorkScheduler: UserSessionWorkScheduler, getEstablishedCallsUseCase: ObserveEstablishedCallsUseCase, endCallUseCase: EndCallUseCase, logoutCallback: LogoutCallback, kaliumConfigs: KaliumConfigs) : LogoutUseCase
Link copied to clipboard

Validates an email address

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Validates a password

Link copied to clipboard
Link copied to clipboard

Validates a user handle