EncryptedSecretContent

@JsonClass(generateAdapter = true)
data class EncryptedSecretContent(    @Json(name = "ciphertext") val ciphertext: String? = null,     @Json(name = "mac") val mac: String? = null,     @Json(name = "ephemeral") val ephemeral: String? = null,     @Json(name = "iv") val initializationVector: String? = null) : AccountDataContent

The account_data will have an encrypted property that is a map from key ID to an object. The algorithm from the m.secret_storage.key.key ID data for the given key defines how the other properties are interpreted, though it's expected that most encryption schemes would have ciphertext and mac properties, where the ciphertext property is the unpadded base64-encoded ciphertext, and the mac is used to ensure the integrity of the data.

Constructors

Link copied to clipboard
fun EncryptedSecretContent(    @Json(name = "ciphertext") ciphertext: String? = null,     @Json(name = "mac") mac: String? = null,     @Json(name = "ephemeral") ephemeral: String? = null,     @Json(name = "iv") initializationVector: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val ciphertext: String? = null

unpadded base64-encoded ciphertext.

Link copied to clipboard
val ephemeral: String? = null
Link copied to clipboard
val initializationVector: String? = null
Link copied to clipboard
val mac: String? = null