Class EncryptionSession

    • Constructor Detail

      • EncryptionSession

        EncryptionSession(MobileEncryptionSession encryptionSession)
    • Method Detail

      • addRecipients

         final Map<String, ActionStatus> addRecipients(Array<String> recipients)

        Add new recipients to this session. These recipients will be able to read all encrypted messages of this session.

        Parameters:
        recipients - The Seald IDs of users to add to this session.
      • addRecipientsAsync

         final Map<String, ActionStatus> addRecipientsAsync(Array<String> recipients)

        Add new recipients to this session. These recipients will be able to read all encrypted messages of this session.

        Parameters:
        recipients - The Seald IDs of users to add to this session.
      • revokeRecipients

         final Map<String, ActionStatus> revokeRecipients(Array<String> recipients)

        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.

        Parameters:
        recipients - The Seald IDs of users to revoke from this session.
      • encryptMessage

         final String encryptMessage(String clearMessage)

        Encrypt a clear-text string into an encrypted message, for the recipients of this session.

        Parameters:
        clearMessage - The message to encrypt.
      • encryptMessageAsync

         final String encryptMessageAsync(String clearMessage)

        Encrypt a clear-text string into an encrypted message, for the recipients of this session.

        Parameters:
        clearMessage - The message to encrypt.
      • decryptMessage

         final String decryptMessage(String encryptedMessage)

        Decrypt an encrypted message string into the corresponding clear-text string.

        Parameters:
        encryptedMessage - The encrypted message to decrypt.
      • decryptMessageAsync

         final String decryptMessageAsync(String encryptedMessage)

        Decrypt an encrypted message string into the corresponding clear-text string.

        Parameters:
        encryptedMessage - The encrypted message to decrypt.
      • encryptFile

         final ByteArray encryptFile(ByteArray clearFile, String filename)

        Encrypt a clear-text file into an encrypted file, for the recipients of this session.

        Parameters:
        clearFile - A ByteArray of the clear-text content of the file to encrypt.
        filename - The name of the file to encrypt.
      • encryptFileAsync

         final ByteArray encryptFileAsync(ByteArray clearFile, String filename)

        Encrypt a clear-text file into an encrypted file, for the recipients of this session.

        Parameters:
        clearFile - A ByteArray of the clear-text content of the file to encrypt.
        filename - The name of the file to encrypt.
      • decryptFile

         final ClearFile decryptFile(ByteArray encryptedFile)

        Decrypts an encrypted file into the corresponding clear-text file.

        Parameters:
        encryptedFile - A ByteArray of the content of the encrypted file to decrypt.
      • decryptFileAsync

         final ClearFile decryptFileAsync(ByteArray encryptedFile)

        Decrypts an encrypted file into the corresponding clear-text file.

        Parameters:
        encryptedFile - A ByteArray of the content of the encrypted file to decrypt.
      • encryptFileFromURI

         final String encryptFileFromURI(String clearFileURI)

        Encrypt a clear file into an encrypted file, for the recipients of this session.

        Parameters:
        clearFileURI - A String URI of the file to encrypt.
      • encryptFileFromURIAsync

         final String encryptFileFromURIAsync(String clearFileURI)

        Encrypt a clear file into an encrypted file, for the recipients of this session.

        Parameters:
        clearFileURI - A String URI of the file to encrypt.
      • decryptFileFromURI

         final String decryptFileFromURI(String encryptedFileURI)

        Decrypts an encrypted file into the corresponding clear-text file.

        Parameters:
        encryptedFileURI - A String URI of the encrypted file to decrypt.
      • decryptFileFromURIAsync

         final String decryptFileFromURIAsync(String encryptedFileURI)

        Decrypts an encrypted file into the corresponding clear-text file.

        Parameters:
        encryptedFileURI - A String URI of the encrypted file to decrypt.