Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.authentication / AuthenticationMethod / Internal

Internal

abstract class Internal : AuthenticationMethod

Base class for authentication methods that manage users of a Webcom internal identity provider.

Webcom internal identity providers authenticate users based on a unique identifier (email or MSISDN) and a password, which may be:

This class provides with common operations to manage user profile data.

Types

MessageDetails

open class MessageDetails

Represents messages sent to the user such as a one-time password or a code to reset her·his personal password.

Provider

enum class Provider

List of all available Webcom internal identity providers.

Functions

clearProfile

fun clearProfile(callback: WebcomDoneCallback? = null): Unit

Clears the profile data of the currently authenticated user stored by the Webcom authentication service. This operation is asynchronous and calls the given callback once performed.

setProfile

fun setProfile(value: Any?, callback: WebcomDoneCallback? = null): Unit

Sets the value of the profile data of the currently authenticated user stored by the Webcom authentication service. This operation is asynchronous and calls the given callback once performed.

updateProfile

fun updateProfile(path: String, value: Any?, callback: WebcomDoneCallback? = null): Unit

Updates the value of the profile data of the currently authenticated user stored by the Webcom authentication service at a given path. This operation is asynchronous and calls the given callback once performed.

Inheritors

OneTimePasswordMethod

class OneTimePasswordMethod : AuthenticationMethod.Internal

Manages users of a given identity provider that authenticates users based on their identifier and a generated one-time password sent to them.

PersonalPasswordMethod

class PersonalPasswordMethod : AuthenticationMethod.Internal

Manages users of a given identity provider that authenticates users based on their identifier and a personal password they can set or update.