UserAccount

open class UserAccount

This class represents a single user account that is currently logged in against a Salesforce endpoint. It encapsulates data that is used to uniquely identify a single user account.

Author

bhariharan

Constructors

Link copied to clipboard
constructor(object: JSONObject)
Construct UserAccount from JSON.
constructor(bundle: Bundle)
Construct UserAccount from Bundle

Properties

Link copied to clipboard
val ACCOUNT_NAME: String = "accountName"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val API_INSTANCE_SERVER: String = "apiInstanceServer"
Link copied to clipboard
Link copied to clipboard
val AUTH_TOKEN: String = "authToken"
Link copied to clipboard
open val authToken: String
Link copied to clipboard
val BEACON_CHILD_CONSUMER_KEY: String = "auto_installed_app_org_consumer_key"
Link copied to clipboard
val BEACON_CHILD_CONSUMER_SECRET: String = "auto_installed_app_org_consumer_secret"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val CLIENT_ID: String = "clientId"
Link copied to clipboard
open val clientId: String
Link copied to clipboard
val COMMUNITY_ID: String = "communityId"
Link copied to clipboard
val COMMUNITY_URL: String = "communityUrl"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val CONTENT_DOMAIN: String = "contentDomain"
Link copied to clipboard
val CONTENT_SID: String = "contentSid"
Link copied to clipboard
Link copied to clipboard
open val contentSid: String
Link copied to clipboard
val COOKIE_CLIENT_SRC: String = "cookie-clientSrc"
Link copied to clipboard
val COOKIE_SID_CLIENT: String = "cookie-sid_Client"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val CREDENTIALS_IDENTIFIER: String = "credentialsIdentifier"
Link copied to clipboard
Link copied to clipboard
val CSRF_TOKEN: String = "csrfToken"
Link copied to clipboard
open val csrfToken: String
Link copied to clipboard
val DISPLAY_NAME: String = "display_name"
Link copied to clipboard
Link copied to clipboard
val EMAIL: String = "email"
Link copied to clipboard
open val email: String
Link copied to clipboard
val FEATURE_FLAGS: String = "feature_flags"
Link copied to clipboard
Link copied to clipboard
val FIRST_NAME: String = "first_name"
Link copied to clipboard
open val firstName: String
Link copied to clipboard
val ID_URL: String = "idUrl"
Link copied to clipboard
open val idUrl: String
Link copied to clipboard
val INSTANCE_SERVER: String = "instanceServer"
Link copied to clipboard
Link copied to clipboard
val INTERNAL_COMMUNITY_ID: String = "000000000000000AAA"
Link copied to clipboard
Link copied to clipboard
val LANGUAGE: String = "language"
Link copied to clipboard
open val language: String
Link copied to clipboard
val LAST_NAME: String = "last_name"
Link copied to clipboard
val LAST_TOKEN_ROTATION_TIME: String = "lastTokenRotationTime"
Link copied to clipboard
open val lastName: String
Link copied to clipboard
Link copied to clipboard
val LIGHTNING_DOMAIN: String = "lightningDomain"
Link copied to clipboard
val LIGHTNING_SID: String = "lightningSid"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val LOCALE: String = "locale"
Link copied to clipboard
open val locale: String
Link copied to clipboard
val LOGIN_SERVER: String = "loginServer"
Link copied to clipboard
Link copied to clipboard
val NATIVE_LOGIN: String = "native_login"
Link copied to clipboard
Link copied to clipboard
val ORG_ID: String = "orgId"
Link copied to clipboard
open val orgId: String
Link copied to clipboard
val PARENT_SID: String = "parentSid"
Link copied to clipboard
open val parentSid: String
Link copied to clipboard
val PHOTO_URL: String = "photoUrl"
Link copied to clipboard
open val photoUrl: String
Link copied to clipboard
val REDIRECT_URI: String = "redirectUri"
Link copied to clipboard
Link copied to clipboard
val REFRESH_TOKEN: String = "refreshToken"
Link copied to clipboard
Link copied to clipboard
val SCOPE: String = "scope"
Link copied to clipboard
open val scope: String
Link copied to clipboard
val SID_COOKIE_NAME: String = "sidCookieName"
Link copied to clipboard
Link copied to clipboard
val THUMBNAIL_URL: String = "thumbnailUrl"
Link copied to clipboard
Link copied to clipboard
val TOKEN_FORMAT: String = "tokenFormat"
Link copied to clipboard
val TOKEN_TYPE: String = "tokenType"
Link copied to clipboard
Link copied to clipboard
open var tokenType: String
Link copied to clipboard
val USER_ID: String = "userId"
Link copied to clipboard
open val userId: String
Link copied to clipboard
val USERNAME: String = "username"
Link copied to clipboard
open val username: String
Link copied to clipboard
val VF_DOMAIN: String = "vfDomain"
Link copied to clipboard
val VF_SID: String = "vfSid"
Link copied to clipboard
open val vfDomain: String
Link copied to clipboard
open val vfSid: String

Functions

Link copied to clipboard
Fetches this user's profile photo from the server and stores it in the cache.
Link copied to clipboard
open fun equals(object: Any): Boolean
Link copied to clipboard
Returns the oauth client id to use for refresh In the case of beacon app, the beacon child consumer key returned during login should be used instead of the configured consumer key
Link copied to clipboard
Returns a unique suffix for this user account, that can be appended to a file to uniquely identify this account, at a community level.
Link copied to clipboard
Returns the storage path for this user account, relative to the higher level directory of app data.
Link copied to clipboard
Returns a unique suffix for this user account, that can be appended to a file to uniquely identify this account, at an org level.
Link copied to clipboard
Returns the org level storage path for this user account, relative to the higher level directory of app data.
Link copied to clipboard
Fetches this user's profile photo from the cache.
Link copied to clipboard
Returns the in-memory refresh token snapshot, without consulting AccountManager.
Link copied to clipboard
Returns a unique suffix for this user account, that can be appended to a file to uniquely identify this account, at a user level.
Link copied to clipboard
Returns the user level storage path for this user account, relative to the higher level directory of app data.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasScope(scopeToCheck: String): Boolean
Checks whether the provided scope exists in this account's scope list.
Link copied to clipboard

Returns whether this account and an authenticated REST client represent the same Salesforce user.

Link copied to clipboard
open fun toBundle(): Bundle
Returns a representation of this instance in a bundle.
Link copied to clipboard
open fun toJson(): JSONObject
Returns a JSON representation of this instance.