Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.authentication.methods / OneTimePasswordMethod

OneTimePasswordMethod

class OneTimePasswordMethod : AuthenticationMethod.Internal

Types

MessageDetails

class MessageDetails : AuthenticationMethod.Internal.MessageDetails

SMSSender

enum class SMSSender

Inherited Properties

identifier

val identifier: String

provider

val provider: AuthenticationMethod.Internal.Provider

Functions

attachIdentity

fun attachIdentity(context: AuthenticationService.Context = Context.New, displayName: String? = null, profile: Any? = null, messageDetails: OneTimePasswordMethod.MessageDetails? = null, callback: WebcomDoneCallback): Unit

authenticate

fun authenticate(oneTimePassword: String, context: AuthenticationService.Context = Context.New, callback: WebcomResultCallback<AuthenticationDetails>? = null): Unit

requestOneTimePassword

fun requestOneTimePassword(messageDetails: OneTimePasswordMethod.MessageDetails?, callback: WebcomResultCallback<String>): Unit

verifyAndAuthenticate

fun verifyAndAuthenticate(oneTimePassword: String, context: AuthenticationService.Context? = null, callback: WebcomResultCallback<AuthenticationDetails>? = null): Unit

Inherited Functions

clearProfile

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

doAttachIdentity

fun doAttachIdentity(password: String?, context: AuthenticationService.Context, displayName: String?, profile: Any?, messageDetails: AuthenticationMethod.Internal.MessageDetails?, callback: WebcomDoneCallback?, authResponseReceiver: ((AuthResponse) -> Unit)? = null): Unit

sendPasswordResetCode

fun sendPasswordResetCode(messageDetails: AuthenticationMethod.Internal.MessageDetails? = null, callback: WebcomDoneCallback? = null): Unit

setProfile

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

updateProfile

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