EncryptionSession
class EncryptionSession(encryptionSession: MobileEncryptionSession)
An encryption session, with which you can then encrypt / decrypt multiple messages or files. This should not be instantiated directly, and should be either created with SealdSDK.createEncryptionSession, or retrieved with SealdSDK.retrieveEncryptionSession or SealdSDK.retrieveEncryptionSessionFromMessage.
Constructors
EncryptionSession | constructor(encryptionSession: MobileEncryptionSession) |
Properties
Name | Summary |
---|---|
sessionId | val sessionId: String The ID of this encryptionSession. Read-only. |
Functions
Name | Summary |
---|---|
addRecipients | fun addRecipients(recipients: Array<String>): Map<String, ActionStatus> Add new recipients to this session. These recipients will be able to read all encrypted messages of this session. |
addRecipientsAsync | suspend fun addRecipientsAsync(recipients: Array<String>): Map<String, ActionStatus> Add new recipients to this session. These recipients will be able to read all encrypted messages of this session. |
decryptFile | fun decryptFile(encryptedFile: ByteArray): ClearFile Decrypts an encrypted file into the corresponding clear-text file. |
decryptFileAsync | suspend fun decryptFileAsync(encryptedFile: ByteArray): ClearFile Decrypts an encrypted file into the corresponding clear-text file. |
decryptFileFromURI | fun decryptFileFromURI(encryptedFileURI: String): String Decrypts an encrypted file into the corresponding clear-text file. |
decryptFileFromURIAsync | suspend fun decryptFileFromURIAsync(encryptedFileURI: String): String Decrypts an encrypted file into the corresponding clear-text file. |
decryptMessage | fun decryptMessage(encryptedMessage: String): String Decrypt an encrypted message string into the corresponding clear-text string. |
decryptMessageAsync | suspend fun decryptMessageAsync(encryptedMessage: String): String Decrypt an encrypted message string into the corresponding clear-text string. |
encryptFile | fun encryptFile(clearFile: ByteArray, filename: String): ByteArray Encrypt a clear-text file into an encrypted file, for the recipients of this session. |
encryptFileAsync | suspend fun encryptFileAsync(clearFile: ByteArray, filename: String): ByteArray Encrypt a clear-text file into an encrypted file, for the recipients of this session. |
encryptFileFromURI | fun encryptFileFromURI(clearFileURI: String): String Encrypt a clear file into an encrypted file, for the recipients of this session. |
encryptFileFromURIAsync | suspend fun encryptFileFromURIAsync(clearFileURI: String): String Encrypt a clear file into an encrypted file, for the recipients of this session. |
encryptMessage | fun encryptMessage(clearMessage: String): String Encrypt a clear-text string into an encrypted message, for the recipients of this session. |
encryptMessageAsync | suspend fun encryptMessageAsync(clearMessage: String): String Encrypt a clear-text string into an encrypted message, for the recipients of this session. |
revokeAll | fun revokeAll(): Map<String, ActionStatus> Revoke this session entirely. |
revokeAllAsync | suspend fun revokeAllAsync(): Map<String, ActionStatus> Revoke this session entirely. |
revokeOthers | fun revokeOthers(): Map<String, ActionStatus> Revoke all recipients besides yourself from this session. |
revokeOthersAsync | suspend fun revokeOthersAsync(): Map<String, ActionStatus> Revoke all recipients besides yourself from this session. |
revokeRecipients | fun revokeRecipients(recipients: Array<String>): Map<String, ActionStatus> Revoke some recipients from this session. If you want to revoke all recipients, see revokeAll instead. If you want to revoke all recipients besides yourself, see revokeOthers. |
revokeRecipientsAsync | suspend fun revokeRecipientsAsync(recipients: Array<String>): Map<String, ActionStatus> Revoke some recipients from this session. If you want to revoke all recipients, see revokeAll instead. If you want to revoke all recipients besides yourself, see revokeOthers. |