DSAuthenticationDelegate

class DSAuthenticationDelegate : DSBaseDelegate, IDisposableHandler

Authentication Delegate which helps authentication process

Constructors

Link copied to clipboard
fun DSAuthenticationDelegate()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun addDisposableToCompositeDisposable(disposable: Disposable)
Link copied to clipboard
open override fun clearAllDisposables()
Link copied to clipboard
fun clearCachedUserData(context: Context, listener: DSLogoutListener?)

Clears the user data as part of logging out

Link copied to clipboard
fun getAccountSettingsFromAPI(context: Context, listener: DSGetAccountSettingsListener)

This function retrieves the Account Settings from Docusign server

Link copied to clipboard
fun getAuthenticationListener(): DSAuthenticationListener?

This function gets the authentication listener instance

Link copied to clipboard
fun getConsumerDisclosureFromAPI(context: Context, listener: DSGetConsumerDisclosureListener)

This function retrieves the Consumer Disclosure from Docusign server

Link copied to clipboard
fun getLoggedInAccountName(context: Context): String?

This function retrieves the logged in account's name

Link copied to clipboard
fun getLoggedInUser(context: Context): DSUser

This function retrieves the logged in user's Info

Link copied to clipboard
fun isSessionActive(context: Context): Boolean

Returns whether there is an active authentication user session.

Link copied to clipboard
fun login(requestCode: Int, context: Context, listener: DSAuthenticationListener?, email: String? = null, userAccountId: String? = null)

This function helps the user to login, using Account Server in a WebView.

fun login(accessToken: String, refreshToken: String?, expiresIn: Int, context: Context, listener: DSAuthenticationListener, userAccountId: String? = null)

This function helps the user to login, using an access token obtained by the containing app.

Link copied to clipboard
fun logout(context: Context, clearCachedData: Boolean, listener: DSLogoutListener?)

This function helps the user to logout

Link copied to clipboard
open override fun removeDisposableFromCompositeDisposable(disposable: Disposable): Boolean
Link copied to clipboard
fun setAuthenticationListener(authListener: DSAuthenticationListener?)

This function sets the authentication listener instance

Link copied to clipboard
fun switchAccount(requestCode: Int, context: Context, listener: DSAuthenticationListener?)

This function helps the users switch the account they are logged into, if they have multiple accounts associated