@ExperimentalFeatures.Ext11OptIn
public final 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(
    @NonNull byte[] encryptedTopic,
    @NonNull String keyIdentifier,
    @NonNull byte[] encapsulatedKey
)

Public methods

boolean
equals(Object other)
final @NonNull byte[]
final @NonNull byte[]
final @NonNull String
int
@NonNull String

Public constructors

EncryptedTopic

Added in 1.1.0-beta11
public EncryptedTopic(
    @NonNull byte[] encryptedTopic,
    @NonNull String keyIdentifier,
    @NonNull byte[] encapsulatedKey
)

Public methods

equals

public boolean equals(Object other)

getEncapsulatedKey

Added in 1.1.0-beta11
public final @NonNull byte[] getEncapsulatedKey()

getEncryptedTopic

Added in 1.1.0-beta11
public final @NonNull byte[] getEncryptedTopic()

getKeyIdentifier

Added in 1.1.0-beta11
public final @NonNull String getKeyIdentifier()

hashCode

public int hashCode()

toString

public @NonNull String toString()