ethree-common / com.virgilsecurity.android.common.model / Group

Group

class Group

Group

Properties

initiator

val initiator: String

participants

var participants: MutableSet<String>

Functions

add

fun add(participants: FindUsersResult): Completable

Adds new participants to group.

fun add(participant: Card): Completable

decrypt

fun decrypt(data: ByteArray, senderCard: Card, date: Date? = null): ByteArray

Decrypts and verifies data from group participant.

fun decrypt(text: String, senderCard: Card, date: Date? = null): String

Decrypts and verifies base64 string from group participant.

encrypt

fun encrypt(string: String): String
fun encrypt(data: ByteArray): ByteArray

Signs and encrypts data for group.

reAdd

fun reAdd(participant: Card): Completable

Share group access and history on new Card of existing participant.

remove

fun remove(participants: FindUsersResult): Completable

Removes participants from group.

fun remove(participant: Card): Completable

update

fun update(): Completable

Updates group.

Companion Object Properties

VALID_PARTICIPANTS_COUNT_RANGE

val VALID_PARTICIPANTS_COUNT_RANGE: IntRange