Identity

interface Identity

Identity data associated to an authenticated user.

Types

Context
Link copied to clipboard
interface Context

Functions

getAccessToken
Link copied to clipboard
abstract fun getAccessToken(): String
Gets the OAuth access token attached to this Identity instance when available.
getContext
Link copied to clipboard
abstract fun getContext(): List<OnAuth.Identity.Context>
getCreatedAt
Link copied to clipboard
abstract fun getCreatedAt(): Date
Gets the creation date of the webcom user account attached to this Identity instance.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
Gets the display name attached to this Identity instance when available.
getEmail
Link copied to clipboard
abstract fun getEmail(): String
Gets the email address attached to this Identity instance when available.
getExpires
Link copied to clipboard
abstract fun getExpires(): Date
Gets the expiration date of the authentication token attached to this Identity instance when available.
getJSONProviderProfile
Link copied to clipboard
abstract fun getJSONProviderProfile(): JSONValue
Gets the provider profile data of this Identity instance as a JSONValue.
getProvider
Link copied to clipboard
abstract fun getProvider(): String
Gets the identifier of the identity provider that forged this Identity instance.
getProviderProfile
Link copied to clipboard
abstract fun getProviderProfile(): Any
Gets the provider profile data of this Identity instance as a JSONValue.
getProviderUid
Link copied to clipboard
abstract fun getProviderUid(): String
Gets the unique identifier attributed by the identity provider that forged this Identity instance.
getUid
Link copied to clipboard
abstract fun getUid(): String
Gets the unique identifier of the webcom user account attached to this Identity instance.
getWebcomAuthToken
Link copied to clipboard
abstract fun getWebcomAuthToken(): String
Gets the Webcom authentication token attached to this Identity instance when available.