core / com.schibsted.account.engine.controller / LoginController

LoginController

class LoginController : VerificationController<LoginContract>

Controller which administrates the process of a login flow using credentials. This is parcelable and should be persisted during the login sequence. After the sequence has been completed, the reference to this can be destroyed. Note: After an Android configuration change, make sure you call evaluate again to re-trigger the currently active task.

Types

CREATOR

companion object CREATOR : Creator<LoginController>

Constructors

<init>

LoginController(parcel: Parcel)LoginController(verifyUser: Boolean, scopes: Array<String> = arrayOf(OIDCScope.SCOPE_OPENID), currentUserId: UserId? = null)

Controller which administrates the process of a login flow using credentials. This is parcelable and should be persisted during the login sequence. After the sequence has been completed, the reference to this can be destroyed. Note: After an Android configuration change, make sure you call evaluate again to re-trigger the currently active task.

Properties

currentUserId

var currentUserId: UserId?

Functions

describeContents

fun describeContents(): Int

evaluate

fun evaluate(contract: LoginContract): Unit

Perform the login sequence. Additional calls to this function will re-trigger the currently active task.

writeToParcel

fun writeToParcel(parcel: Parcel, flags: Int): Unit

Inherited Functions

requestAgreements

fun requestAgreements(contract: T, user: User, agreementsLinks: AgreementLinksResponse): StepValidateAgreements?

requestRequiredFields

fun requestRequiredFields(contract: T, user: User, missingFields: Set<String>): StepValidateReqFields?

Companion Object Functions

createFromParcel

fun createFromParcel(parcel: Parcel): LoginController

newArray

fun newArray(size: Int): Array<LoginController?>