@ExperimentalFeatures.Ext11OptIn
class EncryptedTopic


This class will be used to return encrypted topic cipher text along with necessary fields required to decrypt it.

Decryption of {@link EncryptedTopic#getEncryptedTopic()} should give json string for {@link Topic}. Example of decrypted json string: {@code { "taxonomy_version": 5, "model_version": 2, "topic_id": 10010 }}

Decryption of cipher text is expected to happen on the server with the corresponding algorithm and private key for the public key {@link EncryptedTopic#getKeyIdentifier()}}.

Detailed steps on decryption can be found on Developer Guide.

Summary

Public constructors

EncryptedTopic(
    encryptedTopic: ByteArray,
    keyIdentifier: String,
    encapsulatedKey: ByteArray
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public constructors

EncryptedTopic

Added in 1.1.0-beta11
EncryptedTopic(
    encryptedTopic: ByteArray,
    keyIdentifier: String,
    encapsulatedKey: ByteArray
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

encapsulatedKey

Added in 1.1.0-beta11
val encapsulatedKeyByteArray

encryptedTopic

Added in 1.1.0-beta11
val encryptedTopicByteArray

keyIdentifier

Added in 1.1.0-beta11
val keyIdentifierString