UserPasswordAuth

@JsonClass(generateAdapter = true)
data class UserPasswordAuth(    @Json(name = "session") val session: String? = null,     @Json(name = "type") val type: String? = LoginFlowTypes.PASSWORD,     @Json(name = "user") val user: String? = null,     @Json(name = "password") val password: String? = null) : UIABaseAuth

This class provides the authentication data by using user and password.

Constructors

Link copied to clipboard
fun UserPasswordAuth(    @Json(name = "session") session: String? = null,     @Json(name = "type") type: String? = LoginFlowTypes.PASSWORD,     @Json(name = "user") user: String? = null,     @Json(name = "password") password: String? = null)

Functions

Link copied to clipboard
open override fun asMap(): Map<String, *>
Link copied to clipboard
open override fun copyWithSession(session: String): UserPasswordAuth
Link copied to clipboard
open override fun hasAuthInfo(): Boolean

Properties

Link copied to clipboard
val password: String? = null
Link copied to clipboard
open override val session: String? = null

This is a session identifier that the client must pass back to the homeserver, if one is provided, in subsequent attempts to authenticate in the same API call.

Link copied to clipboard
val type: String?
Link copied to clipboard
val user: String? = null