ethree-common / com.virgilsecurity.android.common.model.ratchet / RatchetChannel

RatchetChannel

class RatchetChannel

Class representing Ratchet Chat.

Types

MultipleData

data class MultipleData

MultipleString

data class MultipleString

Constructors

<init>

RatchetChannel(session: SecureSession, sessionStorage: SessionStorage)

Class representing Ratchet Chat.

Properties

participant

val participant: String

Functions

decrypt

fun decrypt(data: Data): Data

Decrypts data.

fun decrypt(text: String): String

Decrypts string.

decryptMultiple

fun decryptMultiple(data: RatchetChannel.MultipleData): RatchetChannel.MultipleData

Decrypts multiple of data.

fun decryptMultiple(text: RatchetChannel.MultipleString): RatchetChannel.MultipleString

Decrypts multiple strings.

encrypt

fun encrypt(data: Data): Data

Encrypts data.

fun encrypt(text: String): String

Encrypts string.

encryptMultiple

fun encryptMultiple(data: RatchetChannel.MultipleData): RatchetChannel.MultipleData

Encrypts multiple of data.

fun encryptMultiple(text: RatchetChannel.MultipleString): RatchetChannel.MultipleString

Encrypts multiple strings.