Class MessageBackup

  • All Implemented Interfaces:

    
    public class MessageBackup
    
                        

    Message-backup-related functionality.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageBackup()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • MessageBackup

        MessageBackup()
    • Method Detail

      • validate

         static MessageBackup.ValidationResult validate(MessageBackupKey key, MessageBackup.Purpose purpose, Supplier<InputStream> streamFactory, long streamLength)

        Validates an encrypted message backup bundle.

        Returns an error if the input cannot be read or if validation fails.

        Parameters:
        key - the key to use to decrypt the backup
        purpose - whether the input was created for device-to-device transfer or remote backup
        streamFactory - a factory for InputStreams that produce the input
        streamLength - the number of bytes each InputStream will produce
        Returns:

        informational result about the successful validation